| /llvm-project-15.0.7/llvm/lib/ObjCopy/COFF/ |
| H A D | COFFReader.cpp | 60 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()
|
| /llvm-project-15.0.7/llvm/lib/Object/ |
| H A D | Object.cpp | 223 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()
|
| /llvm-project-15.0.7/llvm/tools/llvm-objdump/ |
| H A D | ELFDump.cpp | 61 auto SecOrErr = EF.getSection(Rel.d.a); in getRelocationValueString() local 62 if (!SecOrErr) in getRelocationValueString() 63 return SecOrErr.takeError(); in getRelocationValueString() 73 if ((*SecOrErr)->sh_type == ELF::SHT_RELA) { in getRelocationValueString() 77 } else if ((*SecOrErr)->sh_type == ELF::SHT_REL) { in getRelocationValueString()
|
| H A D | llvm-objdump.cpp | 1932 Expected<section_iterator> SecOrErr = Section.getRelocatedSection(); in printRelocations() local 1933 if (!SecOrErr) in printRelocations() 1937 toString(SecOrErr.takeError())); in printRelocations() 1938 SecToRelSec[**SecOrErr].push_back(Section); in printRelocations()
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/IntelJITEvents/ |
| H A D | IntelJITEventListener.cpp | 274 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()
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/JITLink/ |
| H A D | COFFLinkGraphBuilder.cpp | 209 auto SecOrErr = Obj.getSection(SectionIndex); in graphifySymbols() local 210 if (!SecOrErr) in graphifySymbols() 213 " (" + toString(SecOrErr.takeError()) + ")"); in graphifySymbols() 214 Sec = *SecOrErr; in graphifySymbols()
|
| /llvm-project-15.0.7/llvm/tools/llvm-rtdyld/ |
| H A D | llvm-rtdyld.cpp | 503 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()
|
| /llvm-project-15.0.7/llvm/include/llvm/Object/ |
| H A D | ELFObjectFile.h | 525 if (Expected<section_iterator> SecOrErr = getSymbolSection(Sym)) { in getSymbolName() local 527 return (*SecOrErr)->getName(); in getSymbolName() 1000 Expected<const Elf_Shdr *> SecOrErr = EF.getSection(EShdr->sh_info); in getRelocatedSection() local 1001 if (!SecOrErr) in getRelocatedSection() 1002 return SecOrErr.takeError(); in getRelocatedSection() 1003 return section_iterator(SectionRef(toDRI(*SecOrErr), this)); in getRelocatedSection()
|
| H A D | ELF.h | 842 auto SecOrErr = getSection(Section); in getEntry() local 843 if (!SecOrErr) in getEntry() 844 return SecOrErr.takeError(); in getEntry() 845 return getEntry<T>(**SecOrErr, Entry); in getEntry()
|
| /llvm-project-15.0.7/llvm/tools/llvm-nm/ |
| H A D | llvm-nm.cpp | 466 Expected<section_iterator> SecOrErr = in darwinPrintSymbol() local 468 if (!SecOrErr) { in darwinPrintSymbol() 469 consumeError(SecOrErr.takeError()); in darwinPrintSymbol() 473 Sec = *SecOrErr; in darwinPrintSymbol() 1010 Expected<section_iterator> SecOrErr = Obj.getSymbolSection(Symb); in getSymbolNMTypeChar() local 1011 if (!SecOrErr) { in getSymbolNMTypeChar() 1012 consumeError(SecOrErr.takeError()); in getSymbolNMTypeChar() 1015 section_iterator Sec = *SecOrErr; in getSymbolNMTypeChar()
|
| /llvm-project-15.0.7/llvm/tools/llvm-readobj/ |
| H A D | ELFDumper.cpp | 972 if (!SecOrErr) in getSymbolSectionName() 973 return SecOrErr.takeError(); in getSymbolSectionName() 974 return Obj.getSectionName(**SecOrErr); in getSymbolSectionName() 5996 if (Expected<const Elf_Shdr *> SecOrErr = in getSymbolIndexesForFunctionAddress() local 5999 if (*FunctionSec != *SecOrErr) in getSymbolIndexesForFunctionAddress() 6410 if (Expected<const Elf_Mips_ABIFlags<ELFT> *> SecOrErr = in printMipsABIFlags() local 6412 Flags = *SecOrErr; in printMipsABIFlags() 6414 this->reportUniqueWarning(SecOrErr.takeError()); in printMipsABIFlags() 7449 if (Expected<const Elf_Mips_ABIFlags<ELFT> *> SecOrErr = in printMipsABIFlags() local 7451 Flags = *SecOrErr; in printMipsABIFlags() [all …]
|
| H A D | COFFDumper.cpp | 1498 Expected<const coff_section *> SecOrErr = in printSymbol() local 1500 if (!SecOrErr) { in printSymbol() 1504 consumeError(SecOrErr.takeError()); in printSymbol() 1507 const coff_section *Section = *SecOrErr; in printSymbol()
|
| /llvm-project-15.0.7/llvm/tools/obj2yaml/ |
| H A D | elf2yaml.cpp | 576 auto Add = [&](Expected<ELFYAML::Chunk *> SecOrErr) -> Error { in dumpSections() argument 577 if (!SecOrErr) in dumpSections() 578 return SecOrErr.takeError(); in dumpSections() 579 Ret.emplace_back(*SecOrErr); in dumpSections()
|
| /llvm-project-15.0.7/llvm/lib/DebugInfo/DWARF/ |
| H A D | DWARFContext.cpp | 1713 Expected<section_iterator> SecOrErr = Section.getRelocatedSection(); in DWARFObjInMemory() local 1714 if (!SecOrErr) { in DWARFObjInMemory() 1716 SecOrErr.takeError())); in DWARFObjInMemory() 1724 Obj.isRelocatableObject() ? *SecOrErr : Obj.section_end(); in DWARFObjInMemory()
|