Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/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()
99 Expected<section_iterator>
101 return section_iterator(SectionRef(Sec, this)); in getRelocatedSection()
H A DXCOFFObjectFile.cpp316 Expected<section_iterator>
327 return section_iterator(SectionRef(ExpSec.get(), this)); in getSymbolSection()
644 section_iterator XCOFFObjectFile::section_begin() const { in section_begin()
647 return section_iterator(SectionRef(DRI, this)); in section_begin()
650 section_iterator XCOFFObjectFile::section_end() const { in section_end()
654 return section_iterator(SectionRef(DRI, this)); in section_end()
H A DCOFFObjectFile.cpp246 Expected<section_iterator>
256 return section_iterator(SectionRef(Ret, this)); in getSymbolSection()
981 section_iterator COFFObjectFile::section_begin() const { in section_begin()
984 return section_iterator(SectionRef(Ret, this)); in section_begin()
987 section_iterator COFFObjectFile::section_end() const { in section_end()
992 return section_iterator(SectionRef(Ret, this)); in section_end()
H A DWasmObjectFile.cpp1681 Expected<section_iterator>
1689 return section_iterator(SectionRef(Ref, this)); in getSymbolSection()
1822 section_iterator WasmObjectFile::section_begin() const { in section_begin()
1825 return section_iterator(SectionRef(Ref, this)); in section_begin()
1828 section_iterator WasmObjectFile::section_end() const { in section_end()
1831 return section_iterator(SectionRef(Ref, this)); in section_end()
/llvm-project-15.0.7/llvm/include/llvm/Object/
H A DObjectFile.h47 using section_iterator = content_iterator<SectionRef>; variable
138 Expected<section_iterator> getRelocatedSection() const;
202 Expected<section_iterator> getSection() const;
256 virtual Expected<section_iterator>
283 virtual Expected<section_iterator> getRelocatedSection(DataRefImpl Sec) const;
323 virtual section_iterator section_begin() const = 0;
324 virtual section_iterator section_end() const = 0;
326 using section_iterator_range = iterator_range<section_iterator>;
419 inline Expected<section_iterator> SymbolRef::getSection() const { in getSection()
532 inline Expected<section_iterator> SectionRef::getRelocatedSection() const { in getRelocatedSection()
H A DELFObjectFile.h136 class elf_section_iterator : public section_iterator {
138 elf_section_iterator(const section_iterator &B) : section_iterator(B) { in elf_section_iterator()
308 Expected<section_iterator>
437 section_iterator section_begin() const override;
438 section_iterator section_end() const override;
783 Expected<section_iterator>
806 return section_iterator(SectionRef(Sec, this)); in getSymbolSection()
810 Expected<section_iterator>
993 Expected<section_iterator>
1160 return section_iterator(SectionRef()); in section_begin()
[all …]
H A DWasm.h173 Expected<section_iterator> getSymbolSection(DataRefImpl Symb) const override;
201 section_iterator section_begin() const override;
202 section_iterator section_end() const override;
H A DMachO.h412 Expected<section_iterator> getSymbolSection(DataRefImpl Symb) const override;
462 section_iterator getRelocationSection(DataRefImpl Rel) const;
472 section_iterator getRelocationRelocatedSection(relocation_iterator Rel) const;
484 section_iterator section_begin() const override;
485 section_iterator section_end() const override;
H A DXCOFFObjectFile.h508 Expected<section_iterator> getSymbolSection(DataRefImpl Symb) const override;
539 section_iterator section_begin() const override;
540 section_iterator section_end() const override;
/llvm-project-15.0.7/llvm/tools/llvm-objdump/
H A Dllvm-objdump.h67 llvm::object::section_iterator const &I, in SectionFilterIterator()
68 llvm::object::section_iterator const &E) in SectionFilterIterator()
89 llvm::object::section_iterator Iterator;
90 llvm::object::section_iterator End;
/llvm-project-15.0.7/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.cpp321 section_iterator SI = Obj.section_end(); in loadObjectImpl()
360 for (section_iterator SI = Obj.section_begin(), SE = Obj.section_end(); in loadObjectImpl()
364 Expected<section_iterator> RelSecOrErr = SI->getRelocatedSection(); in loadObjectImpl()
368 section_iterator RelocatedSection = *RelSecOrErr; in loadObjectImpl()
429 for (section_iterator SI = Obj.section_begin(), SE = Obj.section_end(); in loadObjectImpl()
548 for (section_iterator SI = Obj.section_begin(), SE = Obj.section_end(); in computeTotalAllocSize()
654 for (section_iterator SI = Obj.section_begin(), SE = Obj.section_end(); in computeGOTSize()
680 for (section_iterator SI = Obj.section_begin(), SE = Obj.section_end(); in computeSectionStubBufSize()
683 Expected<section_iterator> RelSecOrErr = SI->getRelocatedSection(); in computeSectionStubBufSize()
687 section_iterator RelSecI = *RelSecOrErr; in computeSectionStubBufSize()
H A DRuntimeDyldMachO.h112 static section_iterator getSectionByAddress(const MachOObjectFile &Obj,
H A DRuntimeDyldELF.cpp707 for (section_iterator si = Obj.section_begin(), se = Obj.section_end(); in findOPDEntrySection()
710 Expected<section_iterator> RelSecOrErr = si->getRelocatedSection(); in findOPDEntrySection()
714 section_iterator RelSecI = *RelSecOrErr; in findOPDEntrySection()
760 section_iterator TSI = Obj.section_end(); in findOPDEntrySection()
1270 section_iterator si = *SectionOrErr; in processRelocationRef()
2319 for (section_iterator SI = Obj.section_begin(), SE = Obj.section_end(); in finalizeLoad()
2322 Expected<section_iterator> RelSecOrErr = SI->getRelocatedSection(); in finalizeLoad()
2327 section_iterator RelocatedSection = *RelSecOrErr; in finalizeLoad()
/llvm-project-15.0.7/llvm/tools/llvm-profgen/
H A DProfiledBinary.cpp337 for (section_iterator SI = Obj->section_begin(), SE = Obj->section_end(); in checkPseudoProbe()
362 for (section_iterator SI = Obj->section_begin(), SE = Obj->section_end(); in decodePseudoProbe()
576 section_iterator SecI = unwrapOrError(Symbol.getSection(), FileName); in disassemble()
595 for (section_iterator SI = Obj->section_begin(), SE = Obj->section_end(); in disassemble()
644 for (section_iterator SI = Obj->section_begin(), SE = Obj->section_end(); in checkUseFSDiscriminator()
/llvm-project-15.0.7/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.h203 object::section_iterator SecI = *SectionOrError; in processRelocationRef()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/llvm/tools/llvm-nm/
H A Dllvm-nm.cpp464 section_iterator Sec = SectionRef(); in darwinPrintSymbol()
466 Expected<section_iterator> SecOrErr = in darwinPrintSymbol()
914 Expected<section_iterator> SecIOrErr = SymI->getSection(); in getSymbolNMTypeChar()
919 section_iterator SecI = *SecIOrErr; in getSymbolNMTypeChar()
964 section_iterator SecIter = cantFail(I->getSection()); in getSymbolNMTypeChar()
1010 Expected<section_iterator> SecOrErr = Obj.getSymbolSection(Symb); in getSymbolNMTypeChar()
1015 section_iterator Sec = *SecOrErr; in getSymbolNMTypeChar()
1694 Expected<section_iterator> SymSecOrErr = Sym.getSection(); in getXCOFFExports()
1702 section_iterator SecIter = *SymSecOrErr; in getXCOFFExports()
/llvm-project-15.0.7/llvm/tools/dsymutil/
H A DMachODebugMapParser.cpp571 section_iterator Section = MainBinary.section_end(); in loadMainBinarySymbols()
595 Expected<section_iterator> SectionOrErr = Sym.getSection(); in loadMainBinarySymbols()
/llvm-project-15.0.7/llvm/include/llvm/DebugInfo/PDB/Native/
H A DInputFile.h152 Optional<object::section_iterator> SectionIter;
/llvm-project-15.0.7/llvm/tools/llvm-readobj/
H A DMachODumper.cpp571 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