Home
last modified time | relevance | path

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

12

/freebsd-13.1/contrib/llvm-project/llvm/lib/Object/
H A DObject.cpp32 inline section_iterator *unwrap(LLVMSectionIteratorRef SI) { in unwrap()
33 return reinterpret_cast<section_iterator*>(SI); in unwrap()
37 wrap(const section_iterator *SI) { in wrap()
39 (const_cast<section_iterator*>(SI)); in wrap()
154 return wrap(new section_iterator(sections.begin())); in LLVMObjectFileCopySectionIterator()
200 section_iterator SI = OB->getBinary()->section_begin(); in LLVMGetSections()
201 return wrap(new section_iterator(SI)); in LLVMGetSections()
220 Expected<section_iterator> SecOrErr = (*unwrap(Sym))->getSection(); in LLVMMoveToContainingSection()
H A DObjectFile.cpp48 Expected<section_iterator> SymSec = S.getSection(); in containsSymbol()
99 Expected<section_iterator>
101 return section_iterator(SectionRef(Sec, this)); in getRelocatedSection()
H A DXCOFFObjectFile.cpp225 Expected<section_iterator>
236 return section_iterator(SectionRef(ExpSec.get(), this)); in getSymbolSection()
423 section_iterator XCOFFObjectFile::section_begin() const { in section_begin()
426 return section_iterator(SectionRef(DRI, this)); in section_begin()
429 section_iterator XCOFFObjectFile::section_end() const { in section_end()
433 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()
922 section_iterator COFFObjectFile::section_begin() const { in section_begin()
925 return section_iterator(SectionRef(Ret, this)); in section_begin()
928 section_iterator COFFObjectFile::section_end() const { in section_end()
933 return section_iterator(SectionRef(Ret, this)); in section_end()
H A DMachOObjectFile.cpp1834 Expected<section_iterator> SecOrError = getSymbolSection(Symb); in getSymbolType()
1837 section_iterator Sec = *SecOrError; in getSymbolType()
1886 Expected<section_iterator>
1899 return section_iterator(SectionRef(DRI, this)); in getSymbolSection()
2166 section_iterator
2491 section_iterator
2495 return section_iterator(SectionRef(Sec, this)); in getRelocationRelocatedSection()
2546 section_iterator MachOObjectFile::section_begin() const { in section_begin()
2548 return section_iterator(SectionRef(DRI, this)); in section_begin()
2551 section_iterator MachOObjectFile::section_end() const { in section_end()
[all …]
H A DWasmObjectFile.cpp1578 Expected<section_iterator>
1586 return section_iterator(SectionRef(Ref, this)); in getSymbolSection()
1737 section_iterator WasmObjectFile::section_begin() const { in section_begin()
1740 return section_iterator(SectionRef(Ref, this)); in section_begin()
1743 section_iterator WasmObjectFile::section_end() const { in section_end()
1746 return section_iterator(SectionRef(Ref, this)); in section_end()
/freebsd-13.1/contrib/llvm-project/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;
318 virtual section_iterator section_begin() const = 0;
319 virtual section_iterator section_end() const = 0;
321 using section_iterator_range = iterator_range<section_iterator>;
409 inline Expected<section_iterator> SymbolRef::getSection() const { in getSection()
522 inline Expected<section_iterator> SectionRef::getRelocatedSection() const { in getRelocatedSection()
H A DELFObjectFile.h124 class elf_section_iterator : public section_iterator {
126 elf_section_iterator(const section_iterator &B) : section_iterator(B) { in elf_section_iterator()
296 Expected<section_iterator>
424 section_iterator section_begin() const override;
425 section_iterator section_end() const override;
767 Expected<section_iterator>
790 return section_iterator(SectionRef(Sec, this)); in getSymbolSection()
794 Expected<section_iterator>
976 Expected<section_iterator>
1143 return section_iterator(SectionRef()); in section_begin()
[all …]
H A DMachO.h291 Expected<section_iterator> getSymbolSection(DataRefImpl Symb) const override;
338 section_iterator getRelocationSection(DataRefImpl Rel) const;
348 section_iterator getRelocationRelocatedSection(relocation_iterator Rel) const;
360 section_iterator section_begin() const override;
361 section_iterator section_end() const override;
H A DWasm.h176 Expected<section_iterator> getSymbolSection(DataRefImpl Symb) const override;
204 section_iterator section_begin() const override;
205 section_iterator section_end() const override;
H A DXCOFFObjectFile.h327 Expected<section_iterator> getSymbolSection(DataRefImpl Symb) const override;
358 section_iterator section_begin() const override;
359 section_iterator section_end() const override;
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-objdump/
H A Dllvm-objdump.h74 llvm::object::section_iterator const &I, in SectionFilterIterator()
75 llvm::object::section_iterator const &E) in SectionFilterIterator()
96 llvm::object::section_iterator Iterator;
97 llvm::object::section_iterator End;
H A Dllvm-objdump.cpp714 section_iterator SecI = in addDynamicElfSymbols()
840 Expected<section_iterator> RelocatedOrErr = Sec.getRelocatedSection(); in getRelocsMap()
847 section_iterator Relocated = *RelocatedOrErr; in getRelocsMap()
1156 section_iterator SecI = unwrapOrError(Symbol.getSection(), FileName); in disassembleObject()
1606 Expected<section_iterator> SymSI = in disassembleObject()
1735 Expected<section_iterator> SecOrErr = Section.getRelocatedSection(); in printRelocations()
1973 section_iterator Section = IsSTAB in printSymbol()
/freebsd-13.1/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.cpp319 section_iterator SI = Obj.section_end(); in loadObjectImpl()
358 for (section_iterator SI = Obj.section_begin(), SE = Obj.section_end(); in loadObjectImpl()
362 Expected<section_iterator> RelSecOrErr = SI->getRelocatedSection(); in loadObjectImpl()
366 section_iterator RelocatedSection = *RelSecOrErr; in loadObjectImpl()
427 for (section_iterator SI = Obj.section_begin(), SE = Obj.section_end(); in loadObjectImpl()
539 for (section_iterator SI = Obj.section_begin(), SE = Obj.section_end(); in computeTotalAllocSize()
644 for (section_iterator SI = Obj.section_begin(), SE = Obj.section_end(); in computeGOTSize()
670 for (section_iterator SI = Obj.section_begin(), SE = Obj.section_end(); in computeSectionStubBufSize()
673 Expected<section_iterator> RelSecOrErr = SI->getRelocatedSection(); in computeSectionStubBufSize()
677 section_iterator RelSecI = *RelSecOrErr; in computeSectionStubBufSize()
H A DRuntimeDyldMachO.h112 static section_iterator getSectionByAddress(const MachOObjectFile &Obj,
H A DRuntimeDyldELF.cpp672 for (section_iterator si = Obj.section_begin(), se = Obj.section_end(); in findOPDEntrySection()
675 Expected<section_iterator> RelSecOrErr = si->getRelocatedSection(); in findOPDEntrySection()
679 section_iterator RelSecI = *RelSecOrErr; in findOPDEntrySection()
725 section_iterator TSI = Obj.section_end(); in findOPDEntrySection()
1237 section_iterator si = *SectionOrErr; in processRelocationRef()
1950 for (section_iterator SI = Obj.section_begin(), SE = Obj.section_end(); in finalizeLoad()
1953 Expected<section_iterator> RelSecOrErr = SI->getRelocatedSection(); in finalizeLoad()
1958 section_iterator RelocatedSection = *RelSecOrErr; in finalizeLoad()
/freebsd-13.1/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
H A DRuntimeDyldMachOI386.h168 section_iterator SAI = getSectionByAddress(Obj, AddrA); in processSECTDIFFRelocation()
182 section_iterator SBI = getSectionByAddress(Obj, AddrB); in processSECTDIFFRelocation()
H A DRuntimeDyldMachOARM.h379 section_iterator SAI = getSectionByAddress(MachO, AddrA); in processHALFSECTDIFFRelocation()
393 section_iterator SBI = getSectionByAddress(MachO, AddrB); in processHALFSECTDIFFRelocation()
H A DRuntimeDyldCOFFX86_64.h203 object::section_iterator SecI = *SectionOrError; in processRelocationRef()
/freebsd-13.1/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-13.1/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-13.1/contrib/llvm-project/llvm/tools/llvm-pdbutil/
H A DInputFile.h148 Optional<object::section_iterator> SectionIter;
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-nm/
H A Dllvm-nm.cpp418 section_iterator Sec = SectionRef(); in darwinPrintSymbol()
420 Expected<section_iterator> SecOrErr = in darwinPrintSymbol()
872 Expected<section_iterator> SecIOrErr = SymI->getSection(); in getSymbolNMTypeChar()
877 section_iterator SecI = *SecIOrErr; in getSymbolNMTypeChar()
932 Expected<section_iterator> SecOrErr = Obj.getSymbolSection(Symb); in getSymbolNMTypeChar()
937 section_iterator Sec = *SecOrErr; in getSymbolNMTypeChar()
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DMachODumper.cpp560 section_iterator SecI = Obj->getRelocationSection(DR); in printRelocation()
635 Expected<section_iterator> SecIOrErr = Symbol.getSection(); in printSymbol()
639 section_iterator SecI = *SecIOrErr; in printSymbol()

12