Searched refs:CustomSection (Results 1 – 3 of 3) sorted by relevance
174 struct CustomSection : Section { struct175 explicit CustomSection(StringRef Name) in CustomSection() argument186 struct DylinkSection : CustomSection { argument187 DylinkSection() : CustomSection("dylink") {} in DylinkSection()190 auto C = dyn_cast<CustomSection>(S); in classof()201 struct NameSection : CustomSection {202 NameSection() : CustomSection("name") {} in NameSection()205 auto C = dyn_cast<CustomSection>(S); in classof()212 struct LinkingSection : CustomSection {213 LinkingSection() : CustomSection("linking") {} in LinkingSection()[all …]
77 static void sectionMapping(IO &IO, WasmYAML::CustomSection &Section) { in sectionMapping()155 auto CustomSection = cast<WasmYAML::CustomSection>(Section.get()); in mapping() local156 SectionName = CustomSection->Name; in mapping()174 Section.reset(new WasmYAML::CustomSection(SectionName)); in mapping()175 sectionMapping(IO, *cast<WasmYAML::CustomSection>(Section.get())); in mapping()
1057 for (auto &CustomSection : CustomSections) { in writeCustomSections() local1059 auto *Sec = CustomSection.Section; in writeCustomSections()1060 startCustomSection(Section, CustomSection.Name); in writeCustomSections()1065 CustomSection.OutputContentsOffset = Section.ContentsOffset; in writeCustomSections()1066 CustomSection.OutputIndex = Section.Index; in writeCustomSections()1071 auto &Relocations = CustomSectionsRelocations[CustomSection.Section]; in writeCustomSections()1072 applyRelocations(Relocations, CustomSection.OutputContentsOffset); in writeCustomSections()