Home
last modified time | relevance | path

Searched refs:CustomSection (Results 1 – 5 of 5) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/ObjectYAML/
H A DWasmYAML.h196 struct CustomSection : Section { struct
197 explicit CustomSection(StringRef Name) in CustomSection() function
219 struct DylinkSection : CustomSection { argument
220 DylinkSection() : CustomSection("dylink.0") {} in DylinkSection()
223 auto C = dyn_cast<CustomSection>(S); in classof()
237 struct NameSection : CustomSection {
238 NameSection() : CustomSection("name") {} in NameSection()
241 auto C = dyn_cast<CustomSection>(S); in classof()
250 struct LinkingSection : CustomSection {
251 LinkingSection() : CustomSection("linking") {} in LinkingSection()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DWasmEmitter.cpp38 void writeSectionContent(raw_ostream &OS, WasmYAML::CustomSection &Section);
355 WasmYAML::CustomSection &Section) { in writeSectionContent()
583 auto *CustomSection = cast<WasmYAML::CustomSection>(&Sec); in writeRelocSection() local
584 writeStringRef(("reloc." + CustomSection->Name).str(), OS); in writeRelocSection()
612 if (auto S = dyn_cast<WasmYAML::CustomSection>(Sec.get())) in writeWasm()
622 if (auto S = dyn_cast<WasmYAML::CustomSection>(Sec.get())) in writeWasm()
H A DWasmYAML.cpp97 static void sectionMapping(IO &IO, WasmYAML::CustomSection &Section) { in sectionMapping()
180 auto CustomSection = cast<WasmYAML::CustomSection>(Section.get()); in mapping() local
181 SectionName = CustomSection->Name; in mapping()
207 Section.reset(new WasmYAML::CustomSection(SectionName)); in mapping()
208 sectionMapping(IO, *cast<WasmYAML::CustomSection>(Section.get())); in mapping()
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DWasmObjectWriter.cpp345 void writeCustomSection(WasmCustomSection &CustomSection,
1215 void WasmObjectWriter::writeCustomSection(WasmCustomSection &CustomSection, in writeCustomSection() argument
1218 auto *Sec = CustomSection.Section; in writeCustomSection()
1219 startCustomSection(Section, CustomSection.Name); in writeCustomSection()
1224 CustomSection.OutputContentsOffset = Section.ContentsOffset; in writeCustomSection()
1225 CustomSection.OutputIndex = Section.Index; in writeCustomSection()
1230 auto &Relocations = CustomSectionsRelocations[CustomSection.Section]; in writeCustomSection()
1231 applyRelocations(Relocations, CustomSection.OutputContentsOffset, Asm); in writeCustomSection()
1939 for (auto &CustomSection : CustomSections) in writeOneObject() local
1940 writeCustomSection(CustomSection, Asm); in writeOneObject()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyAsmPrinter.cpp590 MCSectionWasm *CustomSection = OutContext.getWasmSection( in EmitFunctionAttributes() local
593 OutStreamer->switchSection(CustomSection); in EmitFunctionAttributes()