Home
last modified time | relevance | path

Searched refs:ChildOrErr (Results 1 – 8 of 8) sorted by relevance

/external/llvm/tools/llvm-size/
Dllvm-size.cpp532 Expected<std::unique_ptr<Binary>> ChildOrErr = C.getAsBinary(); in printFileSectionSizes() local
533 if (!ChildOrErr) { in printFileSectionSizes()
534 if (auto E = isNotObjectErrorInvalidFileType(ChildOrErr.takeError())) in printFileSectionSizes()
538 if (ObjectFile *o = dyn_cast<ObjectFile>(&*ChildOrErr.get())) { in printFileSectionSizes()
601 Expected<std::unique_ptr<Binary>> ChildOrErr = C.getAsBinary(); in printFileSectionSizes() local
602 if (!ChildOrErr) { in printFileSectionSizes()
604 ChildOrErr.takeError())) in printFileSectionSizes()
610 if (ObjectFile *o = dyn_cast<ObjectFile>(&*ChildOrErr.get())) { in printFileSectionSizes()
690 Expected<std::unique_ptr<Binary>> ChildOrErr = C.getAsBinary(); in printFileSectionSizes() local
691 if (!ChildOrErr) { in printFileSectionSizes()
[all …]
/external/llvm/tools/llvm-nm/
Dllvm-nm.cpp1115 Expected<std::unique_ptr<Binary>> ChildOrErr = C.getAsBinary(&Context); in dumpSymbolNamesFromFile() local
1116 if (!ChildOrErr) { in dumpSymbolNamesFromFile()
1117 if (auto E = isNotObjectErrorInvalidFileType(ChildOrErr.takeError())) in dumpSymbolNamesFromFile()
1121 if (SymbolicFile *O = dyn_cast<SymbolicFile>(&*ChildOrErr.get())) { in dumpSymbolNamesFromFile()
1180 Expected<std::unique_ptr<Binary>> ChildOrErr = in dumpSymbolNamesFromFile() local
1182 if (!ChildOrErr) { in dumpSymbolNamesFromFile()
1184 ChildOrErr.takeError())) { in dumpSymbolNamesFromFile()
1191 dyn_cast<SymbolicFile>(&*ChildOrErr.get())) { in dumpSymbolNamesFromFile()
1251 Expected<std::unique_ptr<Binary>> ChildOrErr = in dumpSymbolNamesFromFile() local
1253 if (!ChildOrErr) { in dumpSymbolNamesFromFile()
[all …]
/external/llvm/tools/llvm-readobj/
Dllvm-readobj.cpp440 Expected<std::unique_ptr<Binary>> ChildOrErr = Child.getAsBinary(); in dumpArchive() local
441 if (!ChildOrErr) { in dumpArchive()
442 if (auto E = isNotObjectErrorInvalidFileType(ChildOrErr.takeError())) { in dumpArchive()
445 logAllUnhandledErrors(ChildOrErr.takeError(), OS, ""); in dumpArchive()
451 if (ObjectFile *Obj = dyn_cast<ObjectFile>(&*ChildOrErr.get())) in dumpArchive()
/external/llvm/include/llvm/Object/
DArchive.h134 if (auto ChildOrErr = C.getNext()) variable
135 C = *ChildOrErr;
139 *E = errorCodeToError(ChildOrErr.getError());
/external/llvm/tools/llvm-cxxdump/
Dllvm-cxxdump.cpp495 Expected<std::unique_ptr<Binary>> ChildOrErr = ArcC.getAsBinary(); in dumpArchive() local
496 if (!ChildOrErr) { in dumpArchive()
498 if (auto E = isNotObjectErrorInvalidFileType(ChildOrErr.takeError())) { in dumpArchive()
505 ChildOrErr.takeError(); in dumpArchive()
509 if (ObjectFile *Obj = dyn_cast<ObjectFile>(&*ChildOrErr.get())) in dumpArchive()
/external/llvm/tools/sancov/
Dsancov.cc427 Expected<std::unique_ptr<object::Binary>> ChildOrErr = C.getAsBinary(); in visitObjectFiles() local
428 FailIfError(errorToErrorCode(ChildOrErr.takeError())); in visitObjectFiles()
429 if (auto *O = dyn_cast<object::ObjectFile>(&*ChildOrErr.get())) in visitObjectFiles()
/external/llvm/tools/llvm-objdump/
Dllvm-objdump.cpp1707 Expected<std::unique_ptr<Binary>> ChildOrErr = C.getAsBinary(); in DumpArchive() local
1708 if (!ChildOrErr) { in DumpArchive()
1709 if (auto E = isNotObjectErrorInvalidFileType(ChildOrErr.takeError())) in DumpArchive()
1713 if (ObjectFile *o = dyn_cast<ObjectFile>(&*ChildOrErr.get())) in DumpArchive()
DMachODump.cpp1575 Expected<std::unique_ptr<Binary>> ChildOrErr = C.getAsBinary(); in ParseInputMachO() local
1576 if (!ChildOrErr) { in ParseInputMachO()
1577 if (auto E = isNotObjectErrorInvalidFileType(ChildOrErr.takeError())) in ParseInputMachO()
1581 if (MachOObjectFile *O = dyn_cast<MachOObjectFile>(&*ChildOrErr.get())) { in ParseInputMachO()
1632 Expected<std::unique_ptr<Binary>> ChildOrErr = C.getAsBinary(); in ParseInputMachO() local
1633 if (!ChildOrErr) { in ParseInputMachO()
1634 if (auto E = isNotObjectErrorInvalidFileType(ChildOrErr.takeError())) in ParseInputMachO()
1639 dyn_cast<MachOObjectFile>(&*ChildOrErr.get())) in ParseInputMachO()
1687 Expected<std::unique_ptr<Binary>> ChildOrErr = C.getAsBinary(); in ParseInputMachO() local
1688 if (!ChildOrErr) { in ParseInputMachO()
[all …]