Searched refs:SecOrErr (Results 1 – 10 of 10) sorted by relevance
144 auto SecOrErr = Sym.getSection(); in notifyObjectLoaded() local145 if (!SecOrErr) { in notifyObjectLoaded()147 consumeError(SecOrErr.takeError()); in notifyObjectLoaded()150 object::section_iterator Sec = *SecOrErr; in notifyObjectLoaded()
58 auto SecOrErr = EF.getSection(Rel.d.a); in getRelocationValueString() local59 if (!SecOrErr) in getRelocationValueString()60 return SecOrErr.takeError(); in getRelocationValueString()70 if ((*SecOrErr)->sh_type == ELF::SHT_RELA) { in getRelocationValueString()74 } else if ((*SecOrErr)->sh_type != ELF::SHT_REL) { in getRelocationValueString()
1630 Expected<section_iterator> SecOrErr = Section.getRelocatedSection(); in printRelocations() local1631 if (!SecOrErr) in printRelocations()1635 toString(SecOrErr.takeError())); in printRelocations()1636 SecToRelSec[**SecOrErr].push_back(Section); in printRelocations()
220 Expected<section_iterator> SecOrErr = (*unwrap(Sym))->getSection(); in LLVMMoveToContainingSection() local221 if (!SecOrErr) { in LLVMMoveToContainingSection()224 logAllUnhandledErrors(SecOrErr.takeError(), OS); in LLVMMoveToContainingSection()228 *unwrap(Sect) = *SecOrErr; in LLVMMoveToContainingSection()
452 auto SecOrErr = Sym.getSection(); in printLineInfoForInput() local453 if (!SecOrErr) { in printLineInfoForInput()455 consumeError(SecOrErr.takeError()); in printLineInfoForInput()458 object::section_iterator Sec = *SecOrErr; in printLineInfoForInput()464 } else if (auto SecOrErr = Sym.getSection()) in printLineInfoForInput() local465 Address.SectionIndex = SecOrErr.get()->getIndex(); in printLineInfoForInput()
562 auto SecOrErr = getSection(Section); in getEntry() local563 if (!SecOrErr) in getEntry()564 return SecOrErr.takeError(); in getEntry()565 return getEntry<T>(*SecOrErr, Entry); in getEntry()
474 if (Expected<section_iterator> SecOrErr = getSymbolSection(Sym)) { in getSymbolName() local476 return (*SecOrErr)->getName(); in getSymbolName()857 Expected<const Elf_Shdr *> SecOrErr = EF.getSection(EShdr->sh_info); in getRelocatedSection() local858 if (!SecOrErr) in getRelocatedSection()859 return SecOrErr.takeError(); in getRelocatedSection()860 return section_iterator(SectionRef(toDRI(*SecOrErr), this)); in getRelocatedSection()
506 Expected<section_iterator> SecOrErr = in darwinPrintSymbol() local508 if (!SecOrErr) { in darwinPrintSymbol()509 consumeError(SecOrErr.takeError()); in darwinPrintSymbol()513 Sec = *SecOrErr; in darwinPrintSymbol()1015 Expected<section_iterator> SecOrErr = Obj.getSymbolSection(Symb); in getSymbolNMTypeChar() local1016 if (!SecOrErr) { in getSymbolNMTypeChar()1017 consumeError(SecOrErr.takeError()); in getSymbolNMTypeChar()1020 section_iterator Sec = *SecOrErr; in getSymbolNMTypeChar()
1602 Expected<section_iterator> SecOrErr = Section.getRelocatedSection(); in DWARFObjInMemory() local1603 if (!SecOrErr) { in DWARFObjInMemory()1605 "failed to get relocated section: ", SecOrErr.takeError())); in DWARFObjInMemory()1614 section_iterator RelocatedSection = *SecOrErr; in DWARFObjInMemory()
1162 Expected<const Elf_Shdr *> SecOrErr = in getSymbolSectionName() local1164 if (!SecOrErr) in getSymbolSectionName()1165 return SecOrErr.takeError(); in getSymbolSectionName()1166 return Obj->getSectionName(*SecOrErr); in getSymbolSectionName()