/external/llvm/tools/llvm-size/ |
D | llvm-size.cpp | 532 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-project/llvm/tools/llvm-size/ |
D | llvm-size.cpp | 570 Expected<std::unique_ptr<Binary>> ChildOrErr = C.getAsBinary(); in printFileSectionSizes() local 571 if (!ChildOrErr) { in printFileSectionSizes() 572 if (auto E = isNotObjectErrorInvalidFileType(ChildOrErr.takeError())) in printFileSectionSizes() 576 if (ObjectFile *o = dyn_cast<ObjectFile>(&*ChildOrErr.get())) { in printFileSectionSizes() 639 Expected<std::unique_ptr<Binary>> ChildOrErr = C.getAsBinary(); in printFileSectionSizes() local 640 if (!ChildOrErr) { in printFileSectionSizes() 642 ChildOrErr.takeError())) in printFileSectionSizes() 648 if (ObjectFile *o = dyn_cast<ObjectFile>(&*ChildOrErr.get())) { in printFileSectionSizes() 728 Expected<std::unique_ptr<Binary>> ChildOrErr = C.getAsBinary(); in printFileSectionSizes() local 729 if (!ChildOrErr) { in printFileSectionSizes() [all …]
|
/external/llvm-project/llvm/lib/Object/ |
D | MachOUniversalWriter.cpp | 118 Expected<std::unique_ptr<Binary>> ChildOrErr = Child.getAsBinary(LLVMCtx); in create() local 119 if (!ChildOrErr) in create() 120 return createFileError(A.getFileName(), ChildOrErr.takeError()); in create() 121 Binary *Bin = ChildOrErr.get().get(); in create() 153 ChildOrErr.get().release(); in create() 187 ChildOrErr.get().release(); in create()
|
/external/llvm/tools/llvm-nm/ |
D | llvm-nm.cpp | 1115 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/include/llvm/Object/ |
D | Archive.h | 134 if (auto ChildOrErr = C.getNext()) variable 135 C = *ChildOrErr; 139 *E = errorCodeToError(ChildOrErr.getError());
|
/external/llvm/tools/llvm-readobj/ |
D | llvm-readobj.cpp | 440 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-project/llvm/tools/llvm-objcopy/ |
D | llvm-objcopy.cpp | 195 Expected<std::unique_ptr<Binary>> ChildOrErr = Child.getAsBinary(); in createNewArchiveMembers() local 196 if (!ChildOrErr) in createNewArchiveMembers() 198 ChildOrErr.takeError()); in createNewArchiveMembers() 201 if (Error E = executeObjcopyOnBinary(Config, *ChildOrErr->get(), MB)) in createNewArchiveMembers()
|
/external/llvm-project/llvm/tools/llvm-nm/ |
D | llvm-nm.cpp | 1866 Expected<std::unique_ptr<Binary>> ChildOrErr = in dumpSymbolNamesFromFile() local 1868 if (!ChildOrErr) { in dumpSymbolNamesFromFile() 1869 if (auto E = isNotObjectErrorInvalidFileType(ChildOrErr.takeError())) in dumpSymbolNamesFromFile() 1873 if (SymbolicFile *O = dyn_cast<SymbolicFile>(&*ChildOrErr.get())) { in dumpSymbolNamesFromFile() 1937 Expected<std::unique_ptr<Binary>> ChildOrErr = in dumpSymbolNamesFromFile() local 1939 if (!ChildOrErr) { in dumpSymbolNamesFromFile() 1941 ChildOrErr.takeError())) { in dumpSymbolNamesFromFile() 1948 dyn_cast<SymbolicFile>(&*ChildOrErr.get())) { in dumpSymbolNamesFromFile() 2008 Expected<std::unique_ptr<Binary>> ChildOrErr = in dumpSymbolNamesFromFile() local 2010 if (!ChildOrErr) { in dumpSymbolNamesFromFile() [all …]
|
/external/llvm/tools/llvm-cxxdump/ |
D | llvm-cxxdump.cpp | 495 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-project/llvm/tools/llvm-cxxdump/ |
D | llvm-cxxdump.cpp | 502 Expected<std::unique_ptr<Binary>> ChildOrErr = ArcC.getAsBinary(); in dumpArchive() local 503 if (!ChildOrErr) { in dumpArchive() 505 if (auto E = isNotObjectErrorInvalidFileType(ChildOrErr.takeError())) { in dumpArchive() 512 consumeError(ChildOrErr.takeError()); in dumpArchive() 516 if (ObjectFile *Obj = dyn_cast<ObjectFile>(&*ChildOrErr.get())) in dumpArchive()
|
/external/llvm-project/llvm/tools/llvm-readobj/ |
D | llvm-readobj.cpp | 602 Expected<std::unique_ptr<Binary>> ChildOrErr = Child.getAsBinary(); in dumpArchive() local 603 if (!ChildOrErr) { in dumpArchive() 604 if (auto E = isNotObjectErrorInvalidFileType(ChildOrErr.takeError())) in dumpArchive() 609 Binary *Bin = ChildOrErr->get(); in dumpArchive()
|
/external/llvm-project/llvm/tools/sancov/ |
D | sancov.cpp | 784 Expected<std::unique_ptr<object::Binary>> ChildOrErr = C.getAsBinary(); in visitObjectFiles() local 785 failIfError(ChildOrErr); in visitObjectFiles() 786 if (auto *O = dyn_cast<object::ObjectFile>(&*ChildOrErr.get())) in visitObjectFiles()
|
/external/llvm/tools/sancov/ |
D | sancov.cc | 427 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/ |
D | llvm-objdump.cpp | 1707 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()
|
D | MachODump.cpp | 1575 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 …]
|
/external/llvm-project/llvm/tools/llvm-objdump/ |
D | llvm-objdump.cpp | 2906 Expected<std::unique_ptr<Binary>> ChildOrErr = C.getAsBinary(); in dumpArchive() local 2907 if (!ChildOrErr) { in dumpArchive() 2908 if (auto E = isNotObjectErrorInvalidFileType(ChildOrErr.takeError())) in dumpArchive() 2912 if (ObjectFile *O = dyn_cast<ObjectFile>(&*ChildOrErr.get())) in dumpArchive() 2914 else if (COFFImportFile *I = dyn_cast<COFFImportFile>(&*ChildOrErr.get())) in dumpArchive()
|
D | MachODump.cpp | 2344 Expected<std::unique_ptr<Binary>> ChildOrErr = C.getAsBinary(); in parseInputMachO() local 2345 if (!ChildOrErr) { in parseInputMachO() 2346 if (Error E = isNotObjectErrorInvalidFileType(ChildOrErr.takeError())) in parseInputMachO() 2350 if (MachOObjectFile *O = dyn_cast<MachOObjectFile>(&*ChildOrErr.get())) { in parseInputMachO() 2425 Expected<std::unique_ptr<Binary>> ChildOrErr = C.getAsBinary(); in parseInputMachO() local 2426 if (!ChildOrErr) { in parseInputMachO() 2428 isNotObjectErrorInvalidFileType(ChildOrErr.takeError())) in parseInputMachO() 2434 dyn_cast<MachOObjectFile>(&*ChildOrErr.get())) in parseInputMachO() 2486 Expected<std::unique_ptr<Binary>> ChildOrErr = C.getAsBinary(); in parseInputMachO() local 2487 if (!ChildOrErr) { in parseInputMachO() [all …]
|
/external/llvm-project/llvm/docs/ |
D | ProgrammersManual.rst | 893 auto ChildOrErr = A.getMember(I); 894 if (auto Err = ChildOrErr.takeError()) { 900 auto &Child = *ChildOrErr; 919 auto ChildOrErr = A.getMember(I); 920 if (auto Err = ChildOrErr.takeError()) 925 auto &Child = *ChildOrErr;
|