Home
last modified time | relevance | path

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

12

/openbsd-src/gnu/llvm/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 DXCOFFObjectFile.cpp347 Expected<section_iterator>
358 return section_iterator(SectionRef(ExpSec.get(), this)); in getSymbolSection()
692 section_iterator XCOFFObjectFile::section_begin() const { in section_begin()
695 return section_iterator(SectionRef(DRI, this)); in section_begin()
698 section_iterator XCOFFObjectFile::section_end() const { in section_end()
702 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.cpp1673 Expected<section_iterator>
1681 return section_iterator(SectionRef(Ref, this)); in getSymbolSection()
1814 section_iterator WasmObjectFile::section_begin() const { in section_begin()
1817 return section_iterator(SectionRef(Ref, this)); in section_begin()
1820 section_iterator WasmObjectFile::section_end() const { in section_end()
1823 return section_iterator(SectionRef(Ref, this)); in section_end()
/openbsd-src/gnu/llvm/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>;
423 inline Expected<section_iterator> SymbolRef::getSection() const { in getSection()
537 inline Expected<section_iterator> SectionRef::getRelocatedSection() const { in getRelocatedSection()
H A DELFObjectFile.h137 class elf_section_iterator : public section_iterator {
139 elf_section_iterator(const section_iterator &B) : section_iterator(B) { in elf_section_iterator()
144 return static_cast<const ELFSectionRef *>(section_iterator::operator->());
148 return static_cast<const ELFSectionRef &>(section_iterator::operator*());
286 Expected<section_iterator> getSymbolSection(const Elf_Sym *Symb,
288 Expected<section_iterator> getSymbolSection(DataRefImpl Symb) const override;
309 Expected<section_iterator>
438 section_iterator section_begin() const override;
439 section_iterator section_end() const override;
526 if (Expected<section_iterator> SecOrErr = getSymbolSection(Sym)) { in getSymbolName()
[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.h437 Expected<section_iterator> getSymbolSection(DataRefImpl Symb) const override;
488 section_iterator getRelocationSection(DataRefImpl Rel) const;
498 section_iterator getRelocationRelocatedSection(relocation_iterator Rel) const;
510 section_iterator section_begin() const override;
511 section_iterator section_end() const override;
H A DXCOFFObjectFile.h586 Expected<section_iterator> getSymbolSection(DataRefImpl Symb) const override;
617 section_iterator section_begin() const override;
618 section_iterator section_end() const override;
/openbsd-src/gnu/llvm/llvm/tools/llvm-objdump/
H A Dllvm-objdump.h71 llvm::object::section_iterator const &I, in SectionFilterIterator()
72 llvm::object::section_iterator const &E) in SectionFilterIterator()
93 llvm::object::section_iterator Iterator;
94 llvm::object::section_iterator End;
/openbsd-src/gnu/llvm/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.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()
2372 for (section_iterator SI = Obj.section_begin(), SE = Obj.section_end(); in finalizeLoad()
2375 Expected<section_iterator> RelSecOrErr = SI->getRelocatedSection(); in finalizeLoad()
2380 section_iterator RelocatedSection = *RelSecOrErr; in finalizeLoad()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/tools/llvm-profgen/
H A DProfiledBinary.cpp360 for (section_iterator SI = Obj->section_begin(), SE = Obj->section_end(); in checkPseudoProbe()
406 for (section_iterator SI = Obj->section_begin(), SE = Obj->section_end(); in decodePseudoProbe()
653 section_iterator SecI = unwrapOrError(Symbol.getSection(), FileName); in disassemble()
670 for (section_iterator SI = Obj->section_begin(), SE = Obj->section_end(); in disassemble()
719 for (section_iterator SI = Obj->section_begin(), SE = Obj->section_end(); in checkUseFSDiscriminator()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/tools/llvm-nm/
H A Dllvm-nm.cpp471 section_iterator Sec = SectionRef(); in darwinPrintSymbol()
473 Expected<section_iterator> SecOrErr = in darwinPrintSymbol()
921 Expected<section_iterator> SecIOrErr = SymI->getSection(); in getSymbolNMTypeChar()
926 section_iterator SecI = *SecIOrErr; in getSymbolNMTypeChar()
971 section_iterator SecIter = cantFail(I->getSection()); in getSymbolNMTypeChar()
1017 Expected<section_iterator> SecOrErr = Obj.getSymbolSection(Symb); in getSymbolNMTypeChar()
1022 section_iterator Sec = *SecOrErr; in getSymbolNMTypeChar()
1701 Expected<section_iterator> SymSecOrErr = Sym.getSection(); in getXCOFFExports()
1709 section_iterator SecIter = *SymSecOrErr; in getXCOFFExports()
/openbsd-src/gnu/llvm/llvm/tools/dsymutil/
H A DMachODebugMapParser.cpp572 section_iterator Section = MainBinary.section_end(); in loadMainBinarySymbols()
596 Expected<section_iterator> SectionOrErr = Sym.getSection(); in loadMainBinarySymbols()
/openbsd-src/gnu/llvm/llvm/include/llvm/DebugInfo/PDB/Native/
H A DInputFile.h151 std::optional<object::section_iterator> SectionIter;
/openbsd-src/gnu/llvm/llvm/tools/llvm-readobj/
H A DMachODumper.cpp569 section_iterator SecI = Obj->getRelocationSection(DR); in printRelocation()
677 Expected<section_iterator> SecIOrErr = Symbol.getSection(); in printSymbol()
681 section_iterator SecI = *SecIOrErr; in printSymbol()

12