static void sectionMapping(IO &IO, WasmYAML::LinkingSection &Section) { commonSectionMapping(IO, Section); IO.mapRequired("Name", Section.Name); IO.mapRequired("DataSize", Section.DataSize); IO.mapOptional("SymbolInfo", Section.SymbolInfos); IO.mapOptional("SegmentInfo", Section.SegmentInfos); }
static void sectionMapping(IO &IO, ELFYAML::MipsABIFlags &Section) { commonSectionMapping(IO, Section); IO.mapOptional("Version", Section.Version, Hex16(0)); IO.mapRequired("ISA", Section.ISALevel); IO.mapOptional("ISARevision", Section.ISARevision, Hex8(0)); IO.mapOptional("ISAExtension", Section.ISAExtension, ELFYAML::MIPS_AFL_EXT(Mips::AFL_EXT_NONE)); IO.mapOptional("ASEs", Section.ASEs, ELFYAML::MIPS_AFL_ASE(0)); IO.mapOptional("FpABI", Section.FpABI, ELFYAML::MIPS_ABI_FP(Mips::Val_GNU_MIPS_ABI_FP_ANY)); IO.mapOptional("GPRSize", Section.GPRSize, ELFYAML::MIPS_AFL_REG(Mips::AFL_REG_NONE)); IO.mapOptional("CPR1Size", Section.CPR1Size, ELFYAML::MIPS_AFL_REG(Mips::AFL_REG_NONE)); IO.mapOptional("CPR2Size", Section.CPR2Size, ELFYAML::MIPS_AFL_REG(Mips::AFL_REG_NONE)); IO.mapOptional("Flags1", Section.Flags1, ELFYAML::MIPS_AFL_FLAGS1(0)); IO.mapOptional("Flags2", Section.Flags2, Hex32(0)); }
static void sectionMapping(IO &IO, WasmYAML::TableSection &Section) { commonSectionMapping(IO, Section); IO.mapOptional("Tables", Section.Tables); }
static void sectionMapping(IO &IO, WasmYAML::FunctionSection &Section) { commonSectionMapping(IO, Section); IO.mapOptional("FunctionTypes", Section.FunctionTypes); }
static void sectionMapping(IO &IO, WasmYAML::ImportSection &Section) { commonSectionMapping(IO, Section); IO.mapOptional("Imports", Section.Imports); }
static void sectionMapping(IO &IO, WasmYAML::TypeSection &Section) { commonSectionMapping(IO, Section); IO.mapOptional("Signatures", Section.Signatures); }
static void sectionMapping(IO &IO, WasmYAML::CustomSection &Section) { commonSectionMapping(IO, Section); IO.mapRequired("Name", Section.Name); IO.mapRequired("Payload", Section.Payload); }
static void sectionMapping(IO &IO, WasmYAML::NameSection &Section) { commonSectionMapping(IO, Section); IO.mapRequired("Name", Section.Name); IO.mapOptional("FunctionNames", Section.FunctionNames); }
static void sectionMapping(IO &IO, ELFYAML::RawContentSection &Section) { commonSectionMapping(IO, Section); IO.mapOptional("Content", Section.Content); IO.mapOptional("Size", Section.Size, Hex64(Section.Content.binary_size())); }
static void sectionMapping(IO &IO, WasmYAML::CodeSection &Section) { commonSectionMapping(IO, Section); IO.mapRequired("Functions", Section.Functions); }
static void sectionMapping(IO &IO, WasmYAML::ElemSection &Section) { commonSectionMapping(IO, Section); IO.mapOptional("Segments", Section.Segments); }
static void sectionMapping(IO &IO, WasmYAML::StartSection &Section) { commonSectionMapping(IO, Section); IO.mapOptional("StartFunction", Section.StartFunction); }
static void groupSectionMapping(IO &IO, ELFYAML::Group &group) { commonSectionMapping(IO, group); IO.mapRequired("Members", group.Members); }
static void sectionMapping(IO &IO, ELFYAML::RelocationSection &Section) { commonSectionMapping(IO, Section); IO.mapOptional("Relocations", Section.Relocations); }
static void sectionMapping(IO &IO, ELFYAML::NoBitsSection &Section) { commonSectionMapping(IO, Section); IO.mapOptional("Size", Section.Size, Hex64(0)); }
static void sectionMapping(IO &IO, WasmYAML::MemorySection &Section) { commonSectionMapping(IO, Section); IO.mapOptional("Memories", Section.Memories); }
static void sectionMapping(IO &IO, WasmYAML::GlobalSection &Section) { commonSectionMapping(IO, Section); IO.mapOptional("Globals", Section.Globals); }
static void sectionMapping(IO &IO, WasmYAML::DataSection &Section) { commonSectionMapping(IO, Section); IO.mapRequired("Segments", Section.Segments); }