Home
last modified time | relevance | path

Searched refs:section_iterator (Results 1 – 25 of 40) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/include/llvm/Object/
H A DObjectFile.h47 using section_iterator = content_iterator<SectionRef>; variable
139 Expected<section_iterator> getRelocatedSection() const;
203 Expected<section_iterator> getSection() const;
257 virtual Expected<section_iterator>
284 virtual Expected<section_iterator> getRelocatedSection(DataRefImpl Sec) const;
325 virtual section_iterator section_begin() const = 0;
326 virtual section_iterator section_end() const = 0;
328 using section_iterator_range = iterator_range<section_iterator>;
410 const section_iterator &Begin, in SectionFilterIterator()
411 const section_iterator &End) in SectionFilterIterator()
[all …]
H A DELFObjectFile.h153 class elf_section_iterator : public section_iterator {
155 elf_section_iterator(const section_iterator &B) : section_iterator(B) { in elf_section_iterator()
160 return static_cast<const ELFSectionRef *>(section_iterator::operator->());
164 return static_cast<const ELFSectionRef &>(section_iterator::operator*());
315 Expected<section_iterator> getSymbolSection(const Elf_Sym *Symb,
317 Expected<section_iterator> getSymbolSection(DataRefImpl Symb) const override;
338 Expected<section_iterator>
483 section_iterator section_begin() const override;
484 section_iterator section_end() const override;
575 Expected<section_iterator> SecOrErr = getSymbolSection(Sym); in getSymbolName()
[all …]
H A DGOFFObjectFile.h51 section_iterator section_begin() const override;
52 section_iterator section_end() const override;
84 Expected<section_iterator> getSymbolSection(DataRefImpl Symb) const override;
H A DWasm.h180 Expected<section_iterator> getSymbolSection(DataRefImpl Symb) const override;
209 section_iterator section_begin() const override;
210 section_iterator section_end() const override;
H A DMachO.h438 Expected<section_iterator> getSymbolSection(DataRefImpl Symb) const override;
489 section_iterator getRelocationSection(DataRefImpl Rel) const;
499 section_iterator getRelocationRelocatedSection(relocation_iterator Rel) const;
513 section_iterator section_begin() const override;
514 section_iterator section_end() const override;
H A DXCOFFObjectFile.h600 Expected<section_iterator> getSymbolSection(DataRefImpl Symb) const override;
631 section_iterator section_begin() const override;
632 section_iterator section_end() const override;
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DObject.cpp33 inline section_iterator *unwrap(LLVMSectionIteratorRef SI) { in unwrap()
34 return reinterpret_cast<section_iterator*>(SI); in unwrap()
38 wrap(const section_iterator *SI) { in wrap()
40 (const_cast<section_iterator*>(SI)); in wrap()
157 return wrap(new section_iterator(sections.begin())); in LLVMObjectFileCopySectionIterator()
203 section_iterator SI = OB->getBinary()->section_begin(); in LLVMGetSections()
204 return wrap(new section_iterator(SI)); in LLVMGetSections()
223 Expected<section_iterator> SecOrErr = (*unwrap(Sym))->getSection(); in LLVMMoveToContainingSection()
H A DObjectFile.cpp47 Expected<section_iterator> SymSec = S.getSection(); in containsSymbol()
104 Expected<section_iterator>
106 return section_iterator(SectionRef(Sec, this)); in getRelocatedSection()
H A DGOFFObjectFile.cpp336 Expected<section_iterator>
341 return section_iterator(SectionRef(Sec, this)); in getSymbolSection()
360 return section_iterator(SectionRef(Sec, this)); in getSymbolSection()
554 section_iterator GOFFObjectFile::section_begin() const { in section_begin()
557 return section_iterator(SectionRef(Sec, this)); in section_begin()
560 section_iterator GOFFObjectFile::section_end() const { in section_end()
562 return section_iterator(SectionRef(Sec, this)); in section_end()
H A DXCOFFObjectFile.cpp357 Expected<section_iterator>
368 return section_iterator(SectionRef(ExpSec.get(), this)); in getSymbolSection()
706 section_iterator XCOFFObjectFile::section_begin() const { in section_begin()
709 return section_iterator(SectionRef(DRI, this)); in section_begin()
712 section_iterator XCOFFObjectFile::section_end() const { in section_end()
716 return section_iterator(SectionRef(DRI, this)); in section_end()
H A DCOFFObjectFile.cpp245 Expected<section_iterator>
255 return section_iterator(SectionRef(Ret, this)); in getSymbolSection()
1028 section_iterator COFFObjectFile::section_begin() const { in section_begin()
1031 return section_iterator(SectionRef(Ret, this)); in section_begin()
1034 section_iterator COFFObjectFile::section_end() const { in section_end()
1039 return section_iterator(SectionRef(Ret, this)); in section_end()
H A DWasmObjectFile.cpp1829 Expected<section_iterator> Sec = getSymbolSection(Symb); in getSymbolAddress()
1913 Expected<section_iterator>
1921 return section_iterator(SectionRef(Ref, this)); in getSymbolSection()
2076 section_iterator WasmObjectFile::section_begin() const { in section_begin()
2079 return section_iterator(SectionRef(Ref, this)); in section_begin()
2082 section_iterator WasmObjectFile::section_end() const { in section_end()
2085 return section_iterator(SectionRef(Ref, this)); in section_end()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldMachO.cpp74 section_iterator TargetSI = getSectionByAddress(Obj, SymbolBaseAddr); in processScatteredVANILLA()
144 section_iterator SecI = O.getRelocationRelocatedSection(RI); in makeValueAddendPCRel()
162 section_iterator
165 section_iterator SI = Obj.section_begin(); in getSectionByAddress()
166 section_iterator SE = Obj.section_end(); in getSectionByAddress()
H A DRuntimeDyld.cpp322 section_iterator SI = Obj.section_end(); in loadObjectImpl()
364 for (section_iterator SI = Obj.section_begin(), SE = Obj.section_end(); in loadObjectImpl()
368 Expected<section_iterator> RelSecOrErr = SI->getRelocatedSection(); in loadObjectImpl()
372 section_iterator RelocatedSection = *RelSecOrErr; in loadObjectImpl()
433 for (section_iterator SI = Obj.section_begin(), SE = Obj.section_end(); in loadObjectImpl()
546 for (section_iterator SI = Obj.section_begin(), SE = Obj.section_end(); in computeTotalAllocSize()
656 for (section_iterator SI = Obj.section_begin(), SE = Obj.section_end(); in computeGOTSize()
682 for (section_iterator SI = Obj.section_begin(), SE = Obj.section_end(); in computeSectionStubBufSize()
685 Expected<section_iterator> RelSecOrErr = SI->getRelocatedSection(); in computeSectionStubBufSize()
689 section_iterator RelSecI = *RelSecOrErr; in computeSectionStubBufSize()
H A DRuntimeDyldMachO.h112 static section_iterator getSectionByAddress(const MachOObjectFile &Obj,
H A DRuntimeDyldELF.cpp711 for (section_iterator si = Obj.section_begin(), se = Obj.section_end(); in findOPDEntrySection()
714 Expected<section_iterator> RelSecOrErr = si->getRelocatedSection(); in findOPDEntrySection()
718 section_iterator RelSecI = *RelSecOrErr; in findOPDEntrySection()
764 section_iterator TSI = Obj.section_end(); in findOPDEntrySection()
1282 section_iterator si = *SectionOrErr; in processRelocationRef()
2383 for (section_iterator SI = Obj.section_begin(), SE = Obj.section_end(); in finalizeLoad()
2386 Expected<section_iterator> RelSecOrErr = SI->getRelocatedSection(); in finalizeLoad()
2391 section_iterator RelocatedSection = *RelSecOrErr; in finalizeLoad()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
H A DRuntimeDyldMachOI386.h167 section_iterator SAI = getSectionByAddress(Obj, AddrA); in processSECTDIFFRelocation()
181 section_iterator SBI = getSectionByAddress(Obj, AddrB); in processSECTDIFFRelocation()
H A DRuntimeDyldMachOARM.h378 section_iterator SAI = getSectionByAddress(MachO, AddrA); in processHALFSECTDIFFRelocation()
392 section_iterator SBI = getSectionByAddress(MachO, AddrB); in processHALFSECTDIFFRelocation()
H A DRuntimeDyldCOFFX86_64.h210 object::section_iterator SecI = *SectionOrError; in processRelocationRef()
/freebsd/contrib/llvm-project/llvm/tools/llvm-cxxdump/
H A Dllvm-cxxdump.cpp178 Expected<section_iterator> ErrOrSec = Section.getRelocatedSection(); in dumpCXXData()
182 section_iterator Sec2 = *ErrOrSec; in dumpCXXData()
198 Expected<object::section_iterator> SecIOrErr = Sym.getSection(); in dumpCXXData()
200 object::section_iterator SecI = *SecIOrErr; in dumpCXXData()
/freebsd/contrib/llvm-project/llvm/tools/llvm-nm/
H A Dllvm-nm.cpp449 section_iterator Sec = SectionRef(); in darwinPrintSymbol()
451 Expected<section_iterator> SecOrErr = in darwinPrintSymbol()
659 section_iterator Sec = cantFail(Sym.getSection()); in printLineNumbers()
932 Expected<section_iterator> SecIOrErr = SymI->getSection(); in getSymbolNMTypeChar()
937 section_iterator SecI = *SecIOrErr; in getSymbolNMTypeChar()
982 section_iterator SecIter = cantFail(I->getSection()); in getSymbolNMTypeChar()
1028 Expected<section_iterator> SecOrErr = Obj.getSymbolSection(Symb); in getSymbolNMTypeChar()
1033 section_iterator Sec = *SecOrErr; in getSymbolNMTypeChar()
1722 Expected<section_iterator> SymSecOrErr = Sym.getSection(); in getXCOFFExports()
1730 section_iterator SecIter = *SymSecOrErr; in getXCOFFExports()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/Symbolize/
H A DSymbolizableObjectFile.cpp42 for (section_iterator Section : Obj->sections()) { in create()
155 Expected<section_iterator> Sec = Symbol.getSection(); in addSymbol()
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/
H A DJITLink.h927 using section_iterator = variable
980 nested_collection_iterator<section_iterator, Section::symbol_iterator,
989 nested_collection_iterator<section_iterator, Section::block_iterator,
1263 iterator_range<section_iterator> sections() { in sections()
1265 section_iterator(Sections.begin(), GetSectionMapEntryValue()), in sections()
1266 section_iterator(Sections.end(), GetSectionMapEntryValue())); in sections()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/Native/
H A DInputFile.h151 std::optional<object::section_iterator> SectionIter;
/freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DMachODumper.cpp569 section_iterator SecI = Obj->getRelocationSection(DR); in printRelocation()
679 Expected<section_iterator> SecIOrErr = Symbol.getSection(); in printSymbol()
683 section_iterator SecI = *SecIOrErr; in printSymbol()

12