Home
last modified time | relevance | path

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

/llvm-project-15.0.7/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()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/llvm/tools/llvm-objdump/
H A DELFDump.cpp61 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 Dllvm-objdump.cpp1932 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 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()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/JITLink/
H A DCOFFLinkGraphBuilder.cpp209 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 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()
/llvm-project-15.0.7/llvm/include/llvm/Object/
H A DELFObjectFile.h525 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 DELF.h842 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 Dllvm-nm.cpp466 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 DELFDumper.cpp972 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 DCOFFDumper.cpp1498 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 Delf2yaml.cpp576 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 DDWARFContext.cpp1713 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()