Home
last modified time | relevance | path

Searched refs:SecOrErr (Results 1 – 13 of 13) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/COFF/
H A DCOFFReader.cpp60 Expected<const coff_section *> SecOrErr = COFFObj.getSection(I); in readSections() local
61 if (!SecOrErr) in readSections()
62 return SecOrErr.takeError(); in readSections()
63 const coff_section *Sec = *SecOrErr; in readSections()
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DObject.cpp223 Expected<section_iterator> SecOrErr = (*unwrap(Sym))->getSection(); in LLVMMoveToContainingSection() local
224 if (!SecOrErr) { in LLVMMoveToContainingSection()
227 logAllUnhandledErrors(SecOrErr.takeError(), OS); in LLVMMoveToContainingSection()
230 *unwrap(Sect) = *SecOrErr; in LLVMMoveToContainingSection()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/IntelJITEvents/
H A DIntelJITEventListener.cpp274 auto SecOrErr = Sym.getSection(); in notifyObjectLoaded() local
275 if (!SecOrErr) { in notifyObjectLoaded()
277 consumeError(SecOrErr.takeError()); in notifyObjectLoaded()
280 object::section_iterator Sec = *SecOrErr; in notifyObjectLoaded()
/freebsd/contrib/llvm-project/llvm/tools/llvm-objdump/
H A DELFDump.cpp95 auto SecOrErr = EF.getSection(Rel.d.a); in getRelocationValueString() local
96 if (!SecOrErr) in getRelocationValueString()
97 return SecOrErr.takeError(); in getRelocationValueString()
107 if ((*SecOrErr)->sh_type == ELF::SHT_RELA) { in getRelocationValueString()
111 } else if ((*SecOrErr)->sh_type == ELF::SHT_REL) { in getRelocationValueString()
H A Dllvm-objdump.cpp2533 Expected<section_iterator> SecOrErr = Section.getRelocatedSection(); in printRelocations() local
2534 if (!SecOrErr) in printRelocations()
2538 toString(SecOrErr.takeError())); in printRelocations()
2539 SecToRelSec[**SecOrErr].push_back(Section); in printRelocations()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DCOFFLinkGraphBuilder.cpp222 auto SecOrErr = Obj.getSection(SectionIndex); in graphifySymbols() local
223 if (!SecOrErr) in graphifySymbols()
226 " (" + toString(SecOrErr.takeError()) + ")"); in graphifySymbols()
227 Sec = *SecOrErr; in graphifySymbols()
/freebsd/contrib/llvm-project/llvm/tools/llvm-rtdyld/
H A Dllvm-rtdyld.cpp503 auto SecOrErr = Sym.getSection(); in printLineInfoForInput() local
504 if (!SecOrErr) { in printLineInfoForInput()
506 consumeError(SecOrErr.takeError()); in printLineInfoForInput()
509 object::section_iterator Sec = *SecOrErr; in printLineInfoForInput()
515 } else if (auto SecOrErr = Sym.getSection()) in printLineInfoForInput() local
516 Address.SectionIndex = SecOrErr.get()->getIndex(); in printLineInfoForInput()
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/
H A DELFObjectFile.h540 Expected<section_iterator> SecOrErr = getSymbolSection(Sym); in getSymbolName() local
541 if (SecOrErr) in getSymbolName()
542 return (*SecOrErr)->getName(); in getSymbolName()
543 return SecOrErr.takeError(); in getSymbolName()
1028 Expected<const Elf_Shdr *> SecOrErr = EF.getSection(EShdr->sh_info); in getRelocatedSection() local
1029 if (!SecOrErr) in getRelocatedSection()
1030 return SecOrErr.takeError(); in getRelocatedSection()
1031 return section_iterator(SectionRef(toDRI(*SecOrErr), this)); in getRelocatedSection()
H A DELF.h931 auto SecOrErr = getSection(Section); in getEntry() local
932 if (!SecOrErr) in getEntry()
933 return SecOrErr.takeError(); in getEntry()
934 return getEntry<T>(**SecOrErr, Entry); in getEntry()
/freebsd/contrib/llvm-project/llvm/tools/llvm-nm/
H A Dllvm-nm.cpp451 Expected<section_iterator> SecOrErr = in darwinPrintSymbol() local
453 if (!SecOrErr) { in darwinPrintSymbol()
454 consumeError(SecOrErr.takeError()); in darwinPrintSymbol()
458 Sec = *SecOrErr; in darwinPrintSymbol()
1028 Expected<section_iterator> SecOrErr = Obj.getSymbolSection(Symb); in getSymbolNMTypeChar() local
1029 if (!SecOrErr) { in getSymbolNMTypeChar()
1030 consumeError(SecOrErr.takeError()); in getSymbolNMTypeChar()
1033 section_iterator Sec = *SecOrErr; in getSymbolNMTypeChar()
/freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DELFDumper.cpp1034 if (!SecOrErr) in getSymbolSectionName()
1035 return SecOrErr.takeError(); in getSymbolSectionName()
1036 return Obj.getSectionName(**SecOrErr); in getSymbolSectionName()
6451 if (Expected<const Elf_Shdr *> SecOrErr = in getSymbolIndexesForFunctionAddress() local
6454 if (*FunctionSec != *SecOrErr) in getSymbolIndexesForFunctionAddress()
6845 if (Expected<const Elf_Mips_ABIFlags<ELFT> *> SecOrErr = in printMipsABIFlags() local
6847 Flags = *SecOrErr; in printMipsABIFlags()
6849 this->reportUniqueWarning(SecOrErr.takeError()); in printMipsABIFlags()
8019 if (Expected<const Elf_Mips_ABIFlags<ELFT> *> SecOrErr = in printMipsABIFlags() local
8021 Flags = *SecOrErr; in printMipsABIFlags()
[all …]
H A DCOFFDumper.cpp1640 Expected<const coff_section *> SecOrErr = in printSymbol() local
1642 if (!SecOrErr) { in printSymbol()
1646 consumeError(SecOrErr.takeError()); in printSymbol()
1649 const coff_section *Section = *SecOrErr; in printSymbol()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/
H A DDWARFContext.cpp2157 Expected<section_iterator> SecOrErr = Section.getRelocatedSection(); in DWARFObjInMemory() local
2158 if (!SecOrErr) { in DWARFObjInMemory()
2160 SecOrErr.takeError())); in DWARFObjInMemory()
2168 Obj.isRelocatableObject() ? *SecOrErr : Obj.section_end(); in DWARFObjInMemory()