Searched refs:CustomSection (Results 1 – 5 of 5) sorted by relevance
167 struct CustomSection : Section { struct168 explicit CustomSection(StringRef Name) in CustomSection() argument179 struct NameSection : CustomSection { argument180 NameSection() : CustomSection("name") {} in NameSection()183 auto C = dyn_cast<CustomSection>(S); in classof()190 struct LinkingSection : CustomSection {191 LinkingSection() : CustomSection("linking") {} in LinkingSection()194 auto C = dyn_cast<CustomSection>(S); in classof()
33 int writeSectionContent(raw_ostream &OS, WasmYAML::CustomSection &Section);240 WasmYAML::CustomSection &Section) { in writeSectionContent()438 auto CustomSection = dyn_cast<WasmYAML::CustomSection>(&Sec); in writeRelocSection() local439 if (!CustomSection->Name.startswith(".debug_")) { in writeRelocSection()444 writeStringRef(("reloc." + CustomSection->Name).str(), OS); in writeRelocSection()492 if (auto S = dyn_cast<WasmYAML::CustomSection>(Sec.get())) { in writeWasm()
67 static void sectionMapping(IO &IO, WasmYAML::CustomSection &Section) { in sectionMapping()140 auto CustomSection = cast<WasmYAML::CustomSection>(Section.get()); in mapping() local141 SectionName = CustomSection->Name; in mapping()155 Section.reset(new WasmYAML::CustomSection(SectionName)); in mapping()156 sectionMapping(IO, *cast<WasmYAML::CustomSection>(Section.get())); in mapping()
29 std::unique_ptr<WasmYAML::CustomSection>52 std::unique_ptr<WasmYAML::CustomSection> WasmDumper::dumpCustomSection(const WasmSection &WasmSec) { in dumpCustomSection()53 std::unique_ptr<WasmYAML::CustomSection> CustomSec; in dumpCustomSection()123 CustomSec = make_unique<WasmYAML::CustomSection>(WasmSec.Name); in dumpCustomSection()
1013 for (auto &CustomSection : CustomSections) { in writeCustomSections() local1015 auto *Sec = CustomSection.Section; in writeCustomSections()1016 startCustomSection(Section, CustomSection.Name); in writeCustomSections()1021 CustomSection.OutputContentsOffset = Section.ContentsOffset; in writeCustomSections()1022 CustomSection.OutputIndex = Section.Index; in writeCustomSections()1027 auto &Relocations = CustomSectionsRelocations[CustomSection.Section]; in writeCustomSections()1028 applyRelocations(Relocations, CustomSection.OutputContentsOffset); in writeCustomSections()