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.h195 struct CustomSection : Section { struct
196 explicit CustomSection(StringRef Name) in CustomSection() argument
218 struct DylinkSection : CustomSection { argument
219 DylinkSection() : CustomSection("dylink.0") {} in DylinkSection()
222 auto C = dyn_cast<CustomSection>(S); in classof()
235 struct NameSection : CustomSection {
236 NameSection() : CustomSection("name") {} in NameSection()
239 auto C = dyn_cast<CustomSection>(S); in classof()
248 struct LinkingSection : CustomSection {
249 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);
347 WasmYAML::CustomSection &Section) { in writeSectionContent()
575 auto *CustomSection = cast<WasmYAML::CustomSection>(&Sec); in writeRelocSection() local
576 writeStringRef(("reloc." + CustomSection->Name).str(), OS); in writeRelocSection()
604 if (auto S = dyn_cast<WasmYAML::CustomSection>(Sec.get())) in writeWasm()
613 if (auto S = dyn_cast<WasmYAML::CustomSection>(Sec.get())) in writeWasm()
H A DWasmYAML.cpp96 static void sectionMapping(IO &IO, WasmYAML::CustomSection &Section) { in sectionMapping()
179 auto CustomSection = cast<WasmYAML::CustomSection>(Section.get()); in mapping() local
180 SectionName = CustomSection->Name; in mapping()
206 Section.reset(new WasmYAML::CustomSection(SectionName)); in mapping()
207 sectionMapping(IO, *cast<WasmYAML::CustomSection>(Section.get())); in mapping()
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DWasmObjectWriter.cpp347 void writeCustomSection(WasmCustomSection &CustomSection,
1238 void WasmObjectWriter::writeCustomSection(WasmCustomSection &CustomSection, in writeCustomSection() argument
1241 auto *Sec = CustomSection.Section; in writeCustomSection()
1242 startCustomSection(Section, CustomSection.Name); in writeCustomSection()
1247 CustomSection.OutputContentsOffset = Section.ContentsOffset; in writeCustomSection()
1248 CustomSection.OutputIndex = Section.Index; in writeCustomSection()
1253 auto &Relocations = CustomSectionsRelocations[CustomSection.Section]; in writeCustomSection()
1254 applyRelocations(Relocations, CustomSection.OutputContentsOffset, Asm); in writeCustomSection()
1957 for (auto &CustomSection : CustomSections) in createWasmObjectWriter()
1958 writeCustomSection(CustomSection, As in createWasmObjectWriter()
1934 for (auto &CustomSection : CustomSections) writeOneObject() local
[all...]
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyAsmPrinter.cpp589 MCSectionWasm *CustomSection = OutContext.getWasmSection( in EmitFunctionAttributes() local
592 OutStreamer->switchSection(CustomSection); in EmitFunctionAttributes()