Home
last modified time | relevance | path

Searched refs:BinaryOrErr (Results 1 – 25 of 25) sorted by relevance

/external/llvm-project/llvm/tools/llvm-cvtres/
Dllvm-cvtres.cpp159 Expected<OwningBinary<Binary>> BinaryOrErr = createBinary(File); in main() local
160 if (!BinaryOrErr) in main()
161 reportError(File, errorToErrorCode(BinaryOrErr.takeError())); in main()
163 Binary &Binary = *BinaryOrErr.get().getBinary(); in main()
203 Expected<OwningBinary<Binary>> BinaryOrErr = createBinary(OutputFile); in main() local
204 if (!BinaryOrErr) in main()
205 reportError(OutputFile, errorToErrorCode(BinaryOrErr.takeError())); in main()
206 Binary &Binary = *BinaryOrErr.get().getBinary(); in main()
/external/llvm/tools/obj2yaml/
Dobj2yaml.cpp32 Expected<OwningBinary<Binary>> BinaryOrErr = createBinary(File); in dumpInput() local
33 if (!BinaryOrErr) in dumpInput()
34 return errorToErrorCode(BinaryOrErr.takeError()); in dumpInput()
36 Binary &Binary = *BinaryOrErr.get().getBinary(); in dumpInput()
/external/llvm-project/llvm/tools/llvm-objcopy/MachO/
DMachOObjcopy.cpp436 Expected<std::unique_ptr<Binary>> BinaryOrErr = in executeObjcopyOnMachOUniversalBinary() local
438 if (!BinaryOrErr) in executeObjcopyOnMachOUniversalBinary()
439 return BinaryOrErr.takeError(); in executeObjcopyOnMachOUniversalBinary()
440 Binaries.emplace_back(std::move(*BinaryOrErr), in executeObjcopyOnMachOUniversalBinary()
468 Expected<std::unique_ptr<Binary>> BinaryOrErr = in executeObjcopyOnMachOUniversalBinary() local
470 if (!BinaryOrErr) in executeObjcopyOnMachOUniversalBinary()
471 return BinaryOrErr.takeError(); in executeObjcopyOnMachOUniversalBinary()
472 Binaries.emplace_back(std::move(*BinaryOrErr), std::move(OutputBuffer)); in executeObjcopyOnMachOUniversalBinary()
/external/llvm-project/llvm/tools/llvm-objcopy/
Dllvm-objcopy.cpp304 Expected<OwningBinary<llvm::object::Binary>> BinaryOrErr = in executeObjcopy() local
306 if (!BinaryOrErr) in executeObjcopy()
307 return createFileError(Config.InputFilename, BinaryOrErr.takeError()); in executeObjcopy()
309 if (Archive *Ar = dyn_cast<Archive>(BinaryOrErr.get().getBinary())) { in executeObjcopy()
315 *BinaryOrErr.get().getBinary(), FB)) in executeObjcopy()
/external/llvm/tools/llvm-readobj/
Dllvm-readobj.cpp482 Expected<OwningBinary<Binary>> BinaryOrErr = createBinary(File); in dumpInput() local
483 if (!BinaryOrErr) in dumpInput()
484 reportError(File, errorToErrorCode(BinaryOrErr.takeError())); in dumpInput()
485 Binary &Binary = *BinaryOrErr.get().getBinary(); in dumpInput()
/external/llvm-project/llvm/tools/llvm-pdbutil/
DInputFile.cpp266 Expected<OwningBinary<Binary>> BinaryOrErr = createBinary(Path); in open() local
267 if (!BinaryOrErr) in open()
268 return BinaryOrErr.takeError(); in open()
270 IF.CoffObject = std::move(*BinaryOrErr); in open()
/external/llvm-project/llvm/tools/llvm-cfi-verify/lib/
DFileAnalysis.cpp75 Expected<object::OwningBinary<object::Binary>> BinaryOrErr = in Create() local
77 if (!BinaryOrErr) in Create()
78 return BinaryOrErr.takeError(); in Create()
81 object::OwningBinary<object::Binary> Binary = std::move(BinaryOrErr.get()); in Create()
/external/llvm-project/llvm/tools/llvm-readobj/
Dllvm-readobj.cpp650 Expected<OwningBinary<Binary>> BinaryOrErr = in dumpInput() local
652 if (!BinaryOrErr) in dumpInput()
653 reportError(BinaryOrErr.takeError(), File); in dumpInput()
654 Binary &Binary = *BinaryOrErr.get().getBinary(); in dumpInput()
670 CVTypes.Binaries.push_back(std::move(*BinaryOrErr)); in dumpInput()
/external/llvm/lib/Object/
DArchive.cpp266 auto BinaryOrErr = createBinary(BuffOrErr.get(), Context); in getAsBinary() local
267 if (BinaryOrErr) in getAsBinary()
268 return std::move(*BinaryOrErr); in getAsBinary()
269 return BinaryOrErr.takeError(); in getAsBinary()
/external/llvm-project/llvm/tools/llvm-libtool-darwin/
Dllvm-libtool-darwin.cpp344 Expected<std::unique_ptr<MachOUniversalBinary>> BinaryOrErr = in addUniversalMembers() local
346 if (!BinaryOrErr) in addUniversalMembers()
347 return createFileError(FileName, BinaryOrErr.takeError()); in addUniversalMembers()
349 auto *UO = BinaryOrErr->get(); in addUniversalMembers()
/external/llvm-project/llvm/tools/llvm-lipo/
Dllvm-lipo.cpp322 Expected<OwningBinary<Binary>> BinaryOrErr = in readInputBinaries() local
324 if (!BinaryOrErr) in readInputBinaries()
325 reportError(IF.FileName, BinaryOrErr.takeError()); in readInputBinaries()
326 const Binary *B = BinaryOrErr->getBinary(); in readInputBinaries()
348 InputBinaries.push_back(std::move(*BinaryOrErr)); in readInputBinaries()
/external/llvm/tools/llvm-cxxdump/
Dllvm-cxxdump.cpp519 Expected<OwningBinary<Binary>> BinaryOrErr = createBinary(File); in dumpInput() local
520 if (!BinaryOrErr) { in dumpInput()
521 auto EC = errorToErrorCode(BinaryOrErr.takeError()); in dumpInput()
525 Binary &Binary = *BinaryOrErr.get().getBinary(); in dumpInput()
/external/llvm-project/llvm/tools/llvm-cxxdump/
Dllvm-cxxdump.cpp527 Expected<OwningBinary<Binary>> BinaryOrErr = createBinary(File); in dumpInput() local
528 if (!BinaryOrErr) { in dumpInput()
529 auto EC = errorToErrorCode(BinaryOrErr.takeError()); in dumpInput()
533 Binary &Binary = *BinaryOrErr.get().getBinary(); in dumpInput()
/external/llvm-project/clang/tools/clang-offload-bundler/
DClangOffloadBundler.cpp726 Expected<std::unique_ptr<Binary>> BinaryOrErr = createBinary(FirstInput); in CreateObjectFileHandler() local
730 if (errorToBool(BinaryOrErr.takeError()) || !isa<ObjectFile>(*BinaryOrErr)) in CreateObjectFileHandler()
736 std::unique_ptr<ObjectFile>(cast<ObjectFile>(BinaryOrErr->release()))); in CreateObjectFileHandler()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Object/
DArchive.cpp524 auto BinaryOrErr = createBinary(BuffOrErr.get(), Context); in getAsBinary() local
525 if (BinaryOrErr) in getAsBinary()
526 return std::move(*BinaryOrErr); in getAsBinary()
527 return BinaryOrErr.takeError(); in getAsBinary()
/external/llvm-project/llvm/lib/Object/
DArchive.cpp520 auto BinaryOrErr = createBinary(BuffOrErr.get(), Context); in getAsBinary() local
521 if (BinaryOrErr) in getAsBinary()
522 return std::move(*BinaryOrErr); in getAsBinary()
523 return BinaryOrErr.takeError(); in getAsBinary()
/external/llvm/tools/llvm-size/
Dllvm-size.cpp521 Expected<OwningBinary<Binary>> BinaryOrErr = createBinary(file); in printFileSectionSizes() local
522 if (!BinaryOrErr) { in printFileSectionSizes()
523 error(errorToErrorCode(BinaryOrErr.takeError())); in printFileSectionSizes()
526 Binary &Bin = *BinaryOrErr.get().getBinary(); in printFileSectionSizes()
/external/llvm-project/llvm/tools/llvm-size/
Dllvm-size.cpp559 Expected<OwningBinary<Binary>> BinaryOrErr = createBinary(file); in printFileSectionSizes() local
560 if (!BinaryOrErr) { in printFileSectionSizes()
561 error(BinaryOrErr.takeError(), file); in printFileSectionSizes()
564 Binary &Bin = *BinaryOrErr.get().getBinary(); in printFileSectionSizes()
/external/llvm-project/llvm/tools/sancov/
Dsancov.cpp797 Expected<object::OwningBinary<object::Binary>> BinaryOrErr = in visitObjectFiles() local
799 if (!BinaryOrErr) in visitObjectFiles()
800 failIfError(BinaryOrErr); in visitObjectFiles()
802 object::Binary &Binary = *BinaryOrErr.get().getBinary(); in visitObjectFiles()
/external/llvm/tools/sancov/
Dsancov.cc440 Expected<object::OwningBinary<object::Binary>> BinaryOrErr = in visitObjectFiles() local
442 if (!BinaryOrErr) in visitObjectFiles()
443 FailIfError(errorToErrorCode(BinaryOrErr.takeError())); in visitObjectFiles()
445 object::Binary &Binary = *BinaryOrErr.get().getBinary(); in visitObjectFiles()
/external/llvm/tools/llvm-nm/
Dllvm-nm.cpp1084 Expected<std::unique_ptr<Binary>> BinaryOrErr = createBinary( in dumpSymbolNamesFromFile() local
1086 if (!BinaryOrErr) { in dumpSymbolNamesFromFile()
1087 error(errorToErrorCode(BinaryOrErr.takeError()), Filename); in dumpSymbolNamesFromFile()
1090 Binary &Bin = *BinaryOrErr.get(); in dumpSymbolNamesFromFile()
/external/llvm/tools/llvm-objdump/
Dllvm-objdump.cpp1734 Expected<OwningBinary<Binary>> BinaryOrErr = createBinary(file); in DumpInput() local
1735 if (!BinaryOrErr) in DumpInput()
1736 report_error(file, BinaryOrErr.takeError()); in DumpInput()
1737 Binary &Binary = *BinaryOrErr.get().getBinary(); in DumpInput()
DMachODump.cpp1564 Expected<OwningBinary<Binary>> BinaryOrErr = createBinary(Filename); in ParseInputMachO() local
1565 if (!BinaryOrErr) in ParseInputMachO()
1566 report_error(Filename, BinaryOrErr.takeError()); in ParseInputMachO()
1567 Binary &Bin = *BinaryOrErr.get().getBinary(); in ParseInputMachO()
/external/llvm-project/llvm/tools/llvm-nm/
Dllvm-nm.cpp1831 Expected<std::unique_ptr<Binary>> BinaryOrErr = in dumpSymbolNamesFromFile() local
1833 if (!BinaryOrErr) { in dumpSymbolNamesFromFile()
1834 error(BinaryOrErr.takeError(), Filename); in dumpSymbolNamesFromFile()
1837 Binary &Bin = *BinaryOrErr.get(); in dumpSymbolNamesFromFile()
/external/llvm-project/llvm/tools/llvm-objdump/
DMachODump.cpp2325 Expected<OwningBinary<Binary>> BinaryOrErr = createBinary(Filename); in parseInputMachO() local
2326 if (!BinaryOrErr) { in parseInputMachO()
2327 if (Error E = isNotObjectErrorInvalidFileType(BinaryOrErr.takeError())) in parseInputMachO()
2333 Binary &Bin = *BinaryOrErr.get().getBinary(); in parseInputMachO()
7390 Expected<std::unique_ptr<Binary>> BinaryOrErr = in DisassembleMachO() local
7392 if (!BinaryOrErr) { in DisassembleMachO()
7393 reportError(BinaryOrErr.takeError(), DSYMPath); in DisassembleMachO()
7398 DSYMBinary = std::move(BinaryOrErr.get()); in DisassembleMachO()