Home
last modified time | relevance | path

Searched refs:ObjOrErr (Results 1 – 22 of 22) sorted by relevance

/external/llvm/tools/llvm-dwarfdump/fuzzer/
Dllvm-dwarfdump-fuzzer.cpp27 Expected<std::unique_ptr<ObjectFile>> ObjOrErr = in LLVMFuzzerTestOneInput() local
29 if (auto E = ObjOrErr.takeError()) { in LLVMFuzzerTestOneInput()
33 ObjectFile &Obj = *ObjOrErr.get(); in LLVMFuzzerTestOneInput()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-dwarfdump/fuzzer/
Dllvm-dwarfdump-fuzzer.cpp27 Expected<std::unique_ptr<ObjectFile>> ObjOrErr = in LLVMFuzzerTestOneInput() local
29 if (auto E = ObjOrErr.takeError()) { in LLVMFuzzerTestOneInput()
33 ObjectFile &Obj = *ObjOrErr.get(); in LLVMFuzzerTestOneInput()
/external/llvm/lib/DebugInfo/Symbolize/
DSymbolize.cpp298 auto ObjOrErr = getOrCreateObject(Path, ArchName); in getOrCreateObjectPair() local
299 if (!ObjOrErr) { in getOrCreateObjectPair()
302 return ObjOrErr.takeError(); in getOrCreateObjectPair()
305 ObjectFile *Obj = ObjOrErr.get(); in getOrCreateObjectPair()
346 Expected<std::unique_ptr<ObjectFile>> ObjOrErr = in getOrCreateObject() local
348 if (!ObjOrErr) { in getOrCreateObject()
351 return ObjOrErr.takeError(); in getOrCreateObject()
353 ObjectFile *Res = ObjOrErr->get(); in getOrCreateObject()
355 std::move(ObjOrErr.get()))); in getOrCreateObject()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/Symbolize/
DSymbolize.cpp306 auto ObjOrErr = getOrCreateObject(Path, ArchName); in getOrCreateObjectPair() local
307 if (!ObjOrErr) { in getOrCreateObjectPair()
310 return ObjOrErr.takeError(); in getOrCreateObjectPair()
313 ObjectFile *Obj = ObjOrErr.get(); in getOrCreateObjectPair()
354 Expected<std::unique_ptr<ObjectFile>> ObjOrErr = in getOrCreateObject() local
356 if (!ObjOrErr) { in getOrCreateObject()
359 return ObjOrErr.takeError(); in getOrCreateObject()
361 ObjectFile *Res = ObjOrErr->get(); in getOrCreateObject()
363 std::move(ObjOrErr.get()))); in getOrCreateObject()
/external/llvm/lib/Object/
DObjectFile.cpp119 Expected<std::unique_ptr<ObjectFile>> ObjOrErr = in createObjectFile() local
121 if (!ObjOrErr) in createObjectFile()
122 ObjOrErr.takeError(); in createObjectFile()
123 std::unique_ptr<ObjectFile> Obj = std::move(ObjOrErr.get()); in createObjectFile()
DModuleSummaryIndexObjectFile.cpp117 ErrorOr<std::unique_ptr<object::ModuleSummaryIndexObjectFile>> ObjOrErr = in getModuleSummaryIndexForFile() local
120 EC = ObjOrErr.getError(); in getModuleSummaryIndexForFile()
124 object::ModuleSummaryIndexObjectFile &Obj = **ObjOrErr; in getModuleSummaryIndexForFile()
DObject.cpp64 Expected<std::unique_ptr<ObjectFile>> ObjOrErr( in LLVMCreateObjectFile() local
67 if (!ObjOrErr) { in LLVMCreateObjectFile()
69 consumeError(ObjOrErr.takeError()); in LLVMCreateObjectFile()
73 auto *Ret = new OwningBinary<ObjectFile>(std::move(ObjOrErr.get()), std::move(Buf)); in LLVMCreateObjectFile()
DArchiveWriter.cpp250 Expected<std::unique_ptr<object::SymbolicFile>> ObjOrErr = in writeSymbolTable() local
253 if (!ObjOrErr) { in writeSymbolTable()
255 consumeError(ObjOrErr.takeError()); in writeSymbolTable()
258 object::SymbolicFile &Obj = *ObjOrErr.get(); in writeSymbolTable()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Object/
DObject.cpp64 Expected<std::unique_ptr<ObjectFile>> ObjOrErr( in LLVMCreateObjectFile() local
67 if (!ObjOrErr) { in LLVMCreateObjectFile()
69 consumeError(ObjOrErr.takeError()); in LLVMCreateObjectFile()
73 auto *Ret = new OwningBinary<ObjectFile>(std::move(ObjOrErr.get()), std::move(Buf)); in LLVMCreateObjectFile()
DObjectFile.cpp160 Expected<std::unique_ptr<ObjectFile>> ObjOrErr = in createObjectFile() local
162 if (Error Err = ObjOrErr.takeError()) in createObjectFile()
164 std::unique_ptr<ObjectFile> Obj = std::move(ObjOrErr.get()); in createObjectFile()
DArchiveWriter.cpp377 Expected<std::unique_ptr<object::SymbolicFile>> ObjOrErr = in getSymbols() local
380 if (!ObjOrErr) { in getSymbols()
382 consumeError(ObjOrErr.takeError()); in getSymbols()
387 object::SymbolicFile &Obj = *ObjOrErr.get(); in getSymbols()
/external/llvm/tools/llvm-readobj/
Dllvm-readobj.cpp463 Expected<std::unique_ptr<MachOObjectFile>> ObjOrErr = Obj.getAsObjectFile(); in dumpMachOUniversalBinary() local
464 if (ObjOrErr) in dumpMachOUniversalBinary()
465 dumpObject(&*ObjOrErr.get()); in dumpMachOUniversalBinary()
466 else if (auto E = isNotObjectErrorInvalidFileType(ObjOrErr.takeError())) { in dumpMachOUniversalBinary()
469 logAllUnhandledErrors(ObjOrErr.takeError(), OS, ""); in dumpMachOUniversalBinary()
/external/llvm/tools/llvm-nm/
Dllvm-nm.cpp1152 Expected<std::unique_ptr<ObjectFile>> ObjOrErr = in dumpSymbolNamesFromFile() local
1158 if (ObjOrErr) { in dumpSymbolNamesFromFile()
1159 ObjectFile &Obj = *ObjOrErr.get(); in dumpSymbolNamesFromFile()
1171 ObjOrErr.takeError())) { in dumpSymbolNamesFromFile()
1236 Expected<std::unique_ptr<ObjectFile>> ObjOrErr = I->getAsObjectFile(); in dumpSymbolNamesFromFile() local
1239 if (ObjOrErr) { in dumpSymbolNamesFromFile()
1240 ObjectFile &Obj = *ObjOrErr.get(); in dumpSymbolNamesFromFile()
1243 ObjOrErr.takeError())) { in dumpSymbolNamesFromFile()
1289 Expected<std::unique_ptr<ObjectFile>> ObjOrErr = I->getAsObjectFile(); in dumpSymbolNamesFromFile() local
1294 if (ObjOrErr) { in dumpSymbolNamesFromFile()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/tools/gold/
Dgold-plugin.cpp512 Expected<std::unique_ptr<InputFile>> ObjOrErr = InputFile::create(BufferRef); in claim_file_hook() local
513 if (!ObjOrErr) { in claim_file_hook()
514 handleAllErrors(ObjOrErr.takeError(), [&](const ErrorInfoBase &EI) { in claim_file_hook()
528 std::unique_ptr<InputFile> Obj = std::move(*ObjOrErr); in claim_file_hook()
694 Expected<std::unique_ptr<InputFile>> ObjOrErr = InputFile::create(BufferRef); in addModule() local
696 if (!ObjOrErr) in addModule()
698 toString(ObjOrErr.takeError()).c_str()); in addModule()
701 std::unique_ptr<InputFile> Input = std::move(ObjOrErr.get()); in addModule()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-readobj/
Dllvm-readobj.cpp544 Expected<std::unique_ptr<MachOObjectFile>> ObjOrErr = Obj.getAsObjectFile(); in dumpMachOUniversalBinary() local
545 if (ObjOrErr) in dumpMachOUniversalBinary()
546 dumpObject(&*ObjOrErr.get(), Writer); in dumpMachOUniversalBinary()
547 else if (auto E = isNotObjectErrorInvalidFileType(ObjOrErr.takeError())) { in dumpMachOUniversalBinary()
548 reportError(UBinary->getFileName(), ObjOrErr.takeError()); in dumpMachOUniversalBinary()
/external/llvm/tools/gold/
Dgold-plugin.cpp489 ErrorOr<std::unique_ptr<object::IRObjectFile>> ObjOrErr = in claim_file_hook() local
491 std::error_code EC = ObjOrErr.getError(); in claim_file_hook()
503 std::unique_ptr<object::IRObjectFile> Obj = std::move(*ObjOrErr); in claim_file_hook()
675 ErrorOr<std::unique_ptr<object::ModuleSummaryIndexObjectFile>> ObjOrErr = in getModuleSummaryIndexForFile() local
679 if (std::error_code EC = ObjOrErr.getError()) in getModuleSummaryIndexForFile()
684 object::ModuleSummaryIndexObjectFile &Obj = **ObjOrErr; in getModuleSummaryIndexForFile()
695 ErrorOr<std::unique_ptr<object::IRObjectFile>> ObjOrErr = in getModuleForFile() local
698 if (std::error_code EC = ObjOrErr.getError()) in getModuleForFile()
702 object::IRObjectFile &Obj = **ObjOrErr; in getModuleForFile()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-nm/
Dllvm-nm.cpp1806 Expected<std::unique_ptr<ObjectFile>> ObjOrErr = in dumpSymbolNamesFromFile() local
1812 if (ObjOrErr) { in dumpSymbolNamesFromFile()
1813 ObjectFile &Obj = *ObjOrErr.get(); in dumpSymbolNamesFromFile()
1825 ObjOrErr.takeError())) { in dumpSymbolNamesFromFile()
1890 Expected<std::unique_ptr<ObjectFile>> ObjOrErr = I->getAsObjectFile(); in dumpSymbolNamesFromFile() local
1893 if (ObjOrErr) { in dumpSymbolNamesFromFile()
1894 ObjectFile &Obj = *ObjOrErr.get(); in dumpSymbolNamesFromFile()
1897 ObjOrErr.takeError())) { in dumpSymbolNamesFromFile()
1943 Expected<std::unique_ptr<ObjectFile>> ObjOrErr = I->getAsObjectFile(); in dumpSymbolNamesFromFile() local
1948 if (ObjOrErr) { in dumpSymbolNamesFromFile()
[all …]
/external/llvm/lib/Transforms/IPO/
DFunctionImport.cpp712 ErrorOr<std::unique_ptr<object::ModuleSummaryIndexObjectFile>> ObjOrErr = in getModuleSummaryIndexForFile() local
715 if (std::error_code EC = ObjOrErr.getError()) { in getModuleSummaryIndexForFile()
719 return (*ObjOrErr)->takeIndex(); in getModuleSummaryIndexForFile()
/external/llvm/lib/LTO/
DThinLTOCodeGenerator.cpp493 ErrorOr<std::unique_ptr<object::ModuleSummaryIndexObjectFile>> ObjOrErr = in linkCombinedIndex() local
496 if (std::error_code EC = ObjOrErr.getError()) { in linkCombinedIndex()
502 auto Index = (*ObjOrErr)->takeIndex(); in linkCombinedIndex()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldELF.cpp154 Expected<std::unique_ptr<DyldELFObject<ELFT>>> ObjOrErr = in createRTDyldELFObject() local
156 if (Error E = ObjOrErr.takeError()) in createRTDyldELFObject()
159 std::unique_ptr<DyldELFObject<ELFT>> Obj = std::move(*ObjOrErr); in createRTDyldELFObject()
/external/llvm/tools/llvm-objdump/
DMachODump.cpp1607 Expected<std::unique_ptr<ObjectFile>> ObjOrErr = in ParseInputMachO() local
1612 if (ObjOrErr) { in ParseInputMachO()
1613 ObjectFile &O = *ObjOrErr.get(); in ParseInputMachO()
1617 ObjOrErr.takeError())) { in ParseInputMachO()
1668 Expected<std::unique_ptr<ObjectFile>> ObjOrErr = I->getAsObjectFile(); in ParseInputMachO() local
1671 if (ObjOrErr) { in ParseInputMachO()
1672 ObjectFile &O = *ObjOrErr.get(); in ParseInputMachO()
1676 ObjOrErr.takeError())) { in ParseInputMachO()
1715 Expected<std::unique_ptr<ObjectFile>> ObjOrErr = I->getAsObjectFile(); in ParseInputMachO() local
1719 if (ObjOrErr) { in ParseInputMachO()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-objdump/
DMachODump.cpp2008 Expected<std::unique_ptr<ObjectFile>> ObjOrErr = in ParseInputMachO() local
2013 if (ObjOrErr) { in ParseInputMachO()
2014 ObjectFile &O = *ObjOrErr.get(); in ParseInputMachO()
2018 ObjOrErr.takeError())) { in ParseInputMachO()
2070 Expected<std::unique_ptr<ObjectFile>> ObjOrErr = I->getAsObjectFile(); in ParseInputMachO() local
2073 if (ObjOrErr) { in ParseInputMachO()
2074 ObjectFile &O = *ObjOrErr.get(); in ParseInputMachO()
2078 ObjOrErr.takeError())) { in ParseInputMachO()
2118 Expected<std::unique_ptr<ObjectFile>> ObjOrErr = I->getAsObjectFile(); in ParseInputMachO() local
2122 if (ObjOrErr) { in ParseInputMachO()
[all …]