Home
last modified time | relevance | path

Searched refs:Section (Results 1 – 25 of 448) sorted by relevance

12345678910>>...18

/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/MCTargetDesc/
H A DNVPTXTargetStreamer.cpp46 const MCSection *Section) { in isDwarfSection() argument
49 if (!Section || Section->isText()) in isDwarfSection()
51 return Section == FI->getDwarfAbbrevSection() || in isDwarfSection()
52 Section == FI->getDwarfInfoSection() || in isDwarfSection()
53 Section == FI->getDwarfMacinfoSection() || in isDwarfSection()
54 Section == FI->getDwarfFrameSection() || in isDwarfSection()
55 Section == FI->getDwarfAddrSection() || in isDwarfSection()
56 Section == FI->getDwarfRangesSection() || in isDwarfSection()
57 Section == FI->getDwarfARangesSection() || in isDwarfSection()
58 Section == FI->getDwarfLocSection() || in isDwarfSection()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/Parallel/
H A DDebugLineSectionEmitter.h101 SectionDescriptor &Section) { in emitLineTablePrologue() argument
103 Section.emitIntVal(P.getVersion(), 2); in emitLineTablePrologue()
106 Section.emitIntVal(P.getAddressSize(), 1); in emitLineTablePrologue()
109 Section.emitIntVal(P.SegSelectorSize, 1); in emitLineTablePrologue()
113 Section.emitOffset(0xBADDEF); in emitLineTablePrologue()
115 uint64_t OffsetAfterPrologueLength = Section.OS.tell(); in emitLineTablePrologue()
116 emitLineTableProloguePayload(P, Section); in emitLineTablePrologue()
117 uint64_t OffsetAfterPrologueEnd = Section.OS.tell(); in emitLineTablePrologue()
120 Section.apply(OffsetAfterPrologueLength - in emitLineTablePrologue()
121 Section.getFormParams().getDwarfOffsetByteSize(), in emitLineTablePrologue()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DWasmYAML.cpp26 Section::~Section() = default;
46 static void commonSectionMapping(IO &IO, WasmYAML::Section &Section) { in commonSectionMapping() argument
47 IO.mapRequired("Type", Section.Type); in commonSectionMapping()
48 IO.mapOptional("Relocations", Section.Relocations); in commonSectionMapping()
49 IO.mapOptional("HeaderSecSizeEncodingLen", Section.HeaderSecSizeEncodingLen); in commonSectionMapping()
52 static void sectionMapping(IO &IO, WasmYAML::DylinkSection &Section) { in sectionMapping() argument
53 commonSectionMapping(IO, Section); in sectionMapping()
54 IO.mapRequired("Name", Section.Name); in sectionMapping()
55 IO.mapRequired("MemorySize", Section.MemorySize); in sectionMapping()
56 IO.mapRequired("MemoryAlignment", Section.MemoryAlignment); in sectionMapping()
[all …]
H A DWasmEmitter.cpp33 void writeRelocSection(raw_ostream &OS, WasmYAML::Section &Sec,
38 void writeSectionContent(raw_ostream &OS, WasmYAML::CustomSection &Section);
39 void writeSectionContent(raw_ostream &OS, WasmYAML::TypeSection &Section);
40 void writeSectionContent(raw_ostream &OS, WasmYAML::ImportSection &Section);
41 void writeSectionContent(raw_ostream &OS, WasmYAML::FunctionSection &Section);
42 void writeSectionContent(raw_ostream &OS, WasmYAML::TableSection &Section);
43 void writeSectionContent(raw_ostream &OS, WasmYAML::MemorySection &Section);
44 void writeSectionContent(raw_ostream &OS, WasmYAML::TagSection &Section);
45 void writeSectionContent(raw_ostream &OS, WasmYAML::GlobalSection &Section);
46 void writeSectionContent(raw_ostream &OS, WasmYAML::ExportSection &Section);
[all …]
H A DELFEmitter.cpp229 StringRef SecName, ELFYAML::Section *YAMLSec);
234 ELFYAML::Section *YAMLSec);
238 ELFYAML::Section *YAMLSec);
241 ELFYAML::Section *YAMLSec);
252 const ELFYAML::NoBitsSection &Section,
255 const ELFYAML::RawContentSection &Section,
258 const ELFYAML::RelocationSection &Section,
261 const ELFYAML::RelrSection &Section,
270 const ELFYAML::SymverSection &Section,
273 const ELFYAML::VerneedSection &Section,
[all …]
H A DELFYAML.cpp1336 IO.mapOptional("Section", Symbol.Section); in mapping()
1354 if (Symbol.Index && Symbol.Section) in validate()
1359 static void commonSectionMapping(IO &IO, ELFYAML::Section &Section) { in commonSectionMapping() argument
1360 IO.mapOptional("Name", Section.Name, StringRef()); in commonSectionMapping()
1361 IO.mapRequired("Type", Section.Type); in commonSectionMapping()
1362 IO.mapOptional("Flags", Section.Flags); in commonSectionMapping()
1363 IO.mapOptional("Address", Section.Address); in commonSectionMapping()
1364 IO.mapOptional("Link", Section.Link); in commonSectionMapping()
1365 IO.mapOptional("AddressAlign", Section.AddressAlign, Hex64(0)); in commonSectionMapping()
1366 IO.mapOptional("EntSize", Section.EntSize); in commonSectionMapping()
[all …]
H A DMachOYAML.cpp330 void MappingTraits<MachOYAML::Section>::mapping(IO &IO, in mapping() argument
331 MachOYAML::Section &Section) { in mapping()
332 IO.mapRequired("sectname", Section.sectname); in mapping()
333 IO.mapRequired("segname", Section.segname); in mapping()
334 IO.mapRequired("addr", Section.addr); in mapping()
335 IO.mapRequired("size", Section.size); in mapping()
336 IO.mapRequired("offset", Section.offset); in mapping()
337 IO.mapRequired("align", Section.align); in mapping()
338 IO.mapRequired("reloff", Section in mapping()
349 validate(IO & IO,MachOYAML::Section & Section) validate() argument
496 mapping(IO & IO,MachO::section & Section) mapping() argument
511 mapping(IO & IO,MachO::section_64 & Section) mapping() argument
[all...]
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/DIA/
H A DDIASectionContrib.cpp19 : Session(PDBSession), Section(DiaSection) {} in DIASectionContrib()
23 if (FAILED(Section->get_compiland(&Symbol))) in getCompiland()
32 PrivateGetDIAValue(IDiaSectionContrib *Section, in PrivateGetDIAValue() argument
35 if (S_OK == (Section->*Method)(&Value)) in PrivateGetDIAValue()
42 return PrivateGetDIAValue(Section, &IDiaSectionContrib::get_addressSection); in getAddressSection()
46 return PrivateGetDIAValue(Section, &IDiaSectionContrib::get_addressOffset); in getAddressOffset()
50 return PrivateGetDIAValue(Section, &IDiaSectionContrib::get_virtualAddress); in getVirtualAddress()
54 return PrivateGetDIAValue(Section, in getRelativeVirtualAddress()
59 return PrivateGetDIAValue(Section, &IDiaSectionContrib::get_length); in getLength()
63 return PrivateGetDIAValue(Section, &IDiaSectionContrib::get_notPaged); in isNotPaged()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
H A DRuntimeDyldELFMips.cpp16 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() local
18 resolveMIPSO32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend); in resolveRelocation()
20 resolveMIPSN32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation()
23 resolveMIPSN64Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation()
33 const SectionEntry &Section = Sections[RE.SectionID]; in evaluateRelocation() local
34 Value = evaluateMIPS64Relocation(Section, RE.Offset, Value, RE.RelType, in evaluateRelocation()
44 const SectionEntry &Section = Sections[RE.SectionID]; in applyRelocation() local
45 applyMIPSRelocation(Section.getAddressWithOffset(RE.Offset), Value, in applyRelocation()
53 RuntimeDyldELFMips::evaluateMIPS32Relocation(const SectionEntry &Section, in evaluateMIPS32Relocation() argument
58 << format("%llx", Section.getAddressWithOffset(Offset)) in evaluateMIPS32Relocation()
[all …]
H A DRuntimeDyldCOFFX86_64.h38 for (const SectionEntry &Section : Sections) in getImageBase() local
44 if (Section.getLoadAddress() != 0) in getImageBase()
45 ImageBase = std::min(ImageBase, Section.getLoadAddress()); in getImageBase()
88 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() local
89 uint8_t *Target = Section.getAddressWithOffset(RE.Offset); in resolveRelocation()
99 uint64_t FinalAddress = Section.getLoadAddressWithOffset(RE.Offset); in resolveRelocation()
155 SectionEntry &Section = Sections[SectionID]; in generateRelocationStub()
168 StubOffset = Section.getStubOffset(); in generateRelocationStub()
170 createStubFunction(Section.getAddressWithOffset(StubOffset)); in generateRelocationStub()
171 Section in generateRelocationStub()
148 SectionEntry &Section = Sections[SectionID]; generateRelocationStub() local
211 SectionEntry &Section = Sections[SectionID]; processRelocationRef() local
296 const object::SectionRef &Section = SectionPair.first; finalizeLoad() local
[all...]
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/
H A DDebugSubsectionVisitor.cpp55 DebugCrossModuleExportsSubsectionRef Section; in visitDebugSubsection() local
56 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection()
58 return V.visitCrossModuleExports(Section, State); in visitDebugSubsection()
61 DebugCrossModuleImportsSubsectionRef Section; in visitDebugSubsection() local
62 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection()
64 return V.visitCrossModuleImports(Section, State); in visitDebugSubsection()
67 DebugSymbolsSubsectionRef Section; in visitDebugSubsection() local
68 if (auto EC = Section.initialize(Reader)) in visitDebugSubsection()
70 return V.visitSymbols(Section, State); in visitDebugSubsection()
73 DebugStringTableSubsectionRef Section; in visitDebugSubsection() local
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ObjectYAML/
H A DWasmYAML.h186 struct Section { struct
187 explicit Section(SectionType SecType) : Type(SecType) {} in Section() function
188 virtual ~Section();
195 struct CustomSection : Section { argument
197 : Section(wasm::WASM_SEC_CUSTOM), Name(Name) {} in CustomSection()
199 static bool classof(const Section *S) { in classof()
221 static bool classof(const Section *S) { in classof()
238 static bool classof(const Section *S) { in classof()
251 static bool classof(const Section *S) { in classof()
266 static bool classof(const Section *S) { in classof()
[all …]
H A DELFYAML.h140 std::optional<StringRef> Section; member
251 struct Section : public Chunk { struct
265 Section(ChunkKind Kind, bool IsImplicit = false) : Chunk(Kind, IsImplicit) {} in Chunk() argument
343 struct BBAddrMapSection : Section {
347 BBAddrMapSection() : Section(ChunkKind::BBAddrMap) {} in BBAddrMapSection()
358 struct StackSizesSection : Section {
361 StackSizesSection() : Section(ChunkKind::StackSizes) {} in StackSizesSection()
376 struct DynamicSection : Section {
379 DynamicSection() : Section(ChunkKind::Dynamic) {} in DynamicSection()
388 struct RawContentSection : Section {
[all …]
/freebsd/contrib/llvm-project/llvm/lib/TextAPI/
H A DTextStub.cpp277 static void mapping(IO &IO, ExportSection &Section) { in mapping()
282 IO.mapRequired("archs", Section.Architectures); in mapping()
284 IO.mapOptional("allowed-clients", Section.AllowableClients); in mapping()
286 IO.mapOptional("allowable-clients", Section.AllowableClients); in mapping()
287 IO.mapOptional("re-exports", Section.ReexportedLibraries); in mapping()
288 IO.mapOptional("symbols", Section.Symbols); in mapping()
289 IO.mapOptional("objc-classes", Section.Classes); in mapping()
291 IO.mapOptional("objc-eh-types", Section.ClassEHs); in mapping()
292 IO.mapOptional("objc-ivars", Section.IVars); in mapping()
293 IO.mapOptional("weak-def-symbols", Section.WeakDefSymbols); in mapping()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DConstantPools.cpp80 ConstantPool *AssemblerConstantPools::getConstantPool(MCSection *Section) { in getConstantPool() argument
81 ConstantPoolMapTy::iterator CP = ConstantPools.find(Section); in getConstantPool()
89 AssemblerConstantPools::getOrCreateConstantPool(MCSection *Section) { in getOrCreateConstantPool() argument
90 return ConstantPools[Section]; in getOrCreateConstantPool()
93 static void emitConstantPool(MCStreamer &Streamer, MCSection *Section, in emitConstantPool() argument
96 Streamer.switchSection(Section); in emitConstantPool()
104 MCSection *Section = CPI.first; in emitAll() local
107 emitConstantPool(Streamer, Section, CP); in emitAll()
112 MCSection *Section = Streamer.getCurrentSectionOnly(); in emitForCurrentSection() local
113 if (ConstantPool *CP = getConstantPool(Section)) in emitForCurrentSection()
[all …]
H A DWasmObjectWriter.cpp62 MCSectionWasm *Section; member
74 MCSection *Section; member
123 MCSectionWasm *Section; member
128 WasmCustomSection(StringRef Name, MCSectionWasm *Section) in WasmCustomSection()
129 : Name(Name), Section(Section) {} in WasmCustomSection()
256 void startSection(SectionBookkeeping &Section, unsigned SectionId);
257 void startCustomSection(SectionBookkeeping &Section, StringRef Name);
258 void endSection(SectionBookkeeping &Section);
366 void WasmObjectWriter::startSection(SectionBookkeeping &Section, in startSection() argument
371 Section.SizeOffset = W->OS.tell(); in startSection()
[all …]
H A DWinCOFFObjectWriter.cpp80 COFFSection *Section = nullptr; member in __anon3870acaf0111::COFFSymbol
296 COFFSection *Section = createSection(MCSec.getName()); in defineSection() local
298 Section->Symbol = Symbol; in defineSection()
300 Symbol->Section = Section; in defineSection()
307 if (COMDATSymbol->Section) in defineSection()
309 COMDATSymbol->Section = Section; in defineSection()
320 Section->Header.Characteristics = MCSec.getCharacteristics(); in defineSection()
321 Section->Header.Characteristics |= getAlignment(MCSec); in defineSection()
324 Section->MCSection = &MCSec; in defineSection()
325 SectionMap[&MCSec] = Section; in defineSection()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldELF.cpp259 void RuntimeDyldELF::resolveX86_64Relocation(const SectionEntry &Section, in resolveX86_64Relocation() argument
273 *Section.getAddressWithOffset(Offset) = TruncatedAddr; in resolveX86_64Relocation()
275 << format("%p\n", Section.getAddressWithOffset(Offset))); in resolveX86_64Relocation()
282 support::ulittle16_t::ref(Section.getAddressWithOffset(Offset)) = in resolveX86_64Relocation()
285 << format("%p\n", Section.getAddressWithOffset(Offset))); in resolveX86_64Relocation()
289 support::ulittle64_t::ref(Section.getAddressWithOffset(Offset)) = in resolveX86_64Relocation()
292 << format("%p\n", Section.getAddressWithOffset(Offset))); in resolveX86_64Relocation()
302 support::ulittle32_t::ref(Section.getAddressWithOffset(Offset)) = in resolveX86_64Relocation()
305 << format("%p\n", Section.getAddressWithOffset(Offset))); in resolveX86_64Relocation()
309 uint64_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in resolveX86_64Relocation()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/LogicalView/Readers/
H A DLVBinaryReader.cpp148 for (const object::SectionRef &Section : Obj.sections()) { in mapVirtualAddress() local
150 Expected<StringRef> SectionNameOrErr = Section.getName(); in mapVirtualAddress()
156 dbgs() << "Index: " << format_decimal(Section.getIndex(), 3) << ", " in mapVirtualAddress()
157 << "Address: " << hexValue(Section.getAddress()) << ", " in mapVirtualAddress()
158 << "Size: " << hexValue(Section.getSize()) << ", " in mapVirtualAddress()
160 dbgs() << "isCompressed: " << Section.isCompressed() << ", " in mapVirtualAddress()
161 << "isText: " << Section.isText() << ", " in mapVirtualAddress()
162 << "isData: " << Section.isData() << ", " in mapVirtualAddress()
163 << "isBSS: " << Section.isBSS() << ", " in mapVirtualAddress()
164 << "isVirtual: " << Section.isVirtual() << "\n"; in mapVirtualAddress()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/wasm/
H A DWasmObjcopy.cpp22 using SectionPred = std::function<bool(const Section &Sec)>;
24 static bool isDebugSection(const Section &Sec) { in isDebugSection()
28 static bool isLinkerSection(const Section &Sec) { in isLinkerSection()
32 static bool isNameSection(const Section &Sec) { return Sec.Name == "name"; } in isNameSection()
36 static bool isCommentSection(const Section &Sec) { in isCommentSection()
42 for (const Section &Sec : Obj.Sections) { in dumpSectionToFile()
61 SectionPred RemovePred = [](const Section &) { return false; }; in removeSections() argument
65 RemovePred = [&Config](const Section &Sec) { in removeSections()
71 RemovePred = [RemovePred](const Section &Sec) { in removeSections()
77 RemovePred = [RemovePred](const Section in removeSections()
[all...]
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/COFF/
H A DCOFFObject.cpp56 for (const Section &Sec : Sections) { in markSymbols()
68 void Object::addSections(ArrayRef<Section> NewSections) { in addSections()
69 for (Section S : NewSections) { in addSections()
77 SectionMap = DenseMap<ssize_t, Section *>(Sections.size()); in updateSections()
79 for (Section &S : Sections) { in updateSections()
85 const Section *Object::findSection(ssize_t UniqueId) const { in findSection()
89 void Object::removeSections(function_ref<bool(const Section &)> ToRemove) { in removeSections()
91 auto RemoveAssociated = [&AssociatedSections](const Section &Sec) { in removeSections()
96 llvm::erase_if(Sections, [ToRemove, &RemovedSections](const Section &Sec) { in removeSections()
120 void Object::truncateSections(function_ref<bool(const Section &)> ToTruncate) { in truncateSections()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/
H A DPDBSymbolData.cpp26 if (auto Section = RawSymbol->getAddressSection()) in getLineNumbers() local
28 Section, RawSymbol->getAddressOffset(), Len); in getLineNumbers()
48 while (auto Section = SecContribs->getNext()) { in getCompilandId() local
49 if (Section->getAddressSection() == DataSection && in getCompilandId()
50 Section->getAddressOffset() <= DataOffset && in getCompilandId()
51 (Section->getAddressOffset() + Section->getLength()) > DataOffset) in getCompilandId()
52 return Section->getCompilandId(); in getCompilandId()
/freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DWin64EHDumper.cpp160 const coff_section *Section, uint64_t Offset, in formatSymbol() argument
167 if (!Ctx.ResolveSymbol(Section, Offset, Symbol, Ctx.UserData)) { in formatSymbol()
206 const coff_section *Section, in resolveRelocation() argument
212 Ctx.ResolveSymbol(Section, Offset, Symbol, Ctx.UserData)) in resolveRelocation()
229 for (const auto &Section : COFF.sections()) { in getSectionContaining() local
230 uint64_t Address = Section.getAddress(); in getSectionContaining()
231 uint64_t Size = Section.getSize(); in getSectionContaining()
234 return COFF.getCOFFSection(Section); in getSectionContaining()
242 const coff_section *Section, in printRuntimeFunctionEntry() argument
246 formatSymbol(Ctx, Section, Offse in printRuntimeFunctionEntry()
314 printUnwindInfo(const Context & Ctx,const coff_section * Section,off_t Offset,const UnwindInfo & UI) printUnwindInfo() argument
359 printRuntimeFunction(const Context & Ctx,const coff_section * Section,uint64_t SectionOffset,const RuntimeFunction & RF) printRuntimeFunction() argument
393 for (const auto &Section : Ctx.COFF.sections()) { printData() local
[all...]
/freebsd/contrib/llvm-project/lldb/source/Core/
H A DSection.cpp28 const char *Section::GetTypeAsCString() const { in GetTypeAsCString()
158 Section::Section(const ModuleSP &module_sp, ObjectFile *obj_file, in Section() function in Section
173 Section::Section(const lldb::SectionSP &parent_section_sp, in Section() function in Section
191 Section::~Section() = default;
193 addr_t Section::GetFileAddress() const { in GetFileAddress()
205 bool Section::SetFileAddress(lldb::addr_t file_addr) { in SetFileAddress()
218 lldb::addr_t Section::GetOffset() const { in GetOffset()
228 addr_t Section::GetLoadBaseAddress(Target *target) const { in GetLoadBaseAddress()
238 const_cast<Section *>(this)->shared_from_this()); in GetLoadBaseAddress()
243 bool Section::ResolveContainedAddress(addr_t offset, Address &so_addr, in ResolveContainedAddress()
[all …]
/freebsd/contrib/llvm-project/lldb/include/lldb/Core/
H A DSection.h32 class Section; variable
55 size_t FindSectionIndex(const Section *sect);
110 class Section : public std::enable_shared_from_this<Section>,
116 Section(const lldb::ModuleSP &module_sp, ObjectFile *obj_file,
124 Section(const lldb::SectionSP &parent_section_sp, // NULL for top level
134 ~Section();
136 static int Compare(const Section &a, const Section &b);
182 bool IsDescendant(const Section *section);
292 Section(const Section &) = delete;
293 const Section &operator=(const Section &) = delete;

12345678910>>...18