Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-cvtres/
Dllvm-cvtres.cpp165 Expected<OwningBinary<Binary>> BinaryOrErr = createBinary(File); in main() local
166 if (!BinaryOrErr) in main()
167 reportError(File, errorToErrorCode(BinaryOrErr.takeError())); in main()
169 Binary &Binary = *BinaryOrErr.get().getBinary(); in main()
205 Expected<OwningBinary<Binary>> BinaryOrErr = createBinary(OutputFile); in main() local
206 if (!BinaryOrErr) in main()
207 reportError(OutputFile, errorToErrorCode(BinaryOrErr.takeError())); in main()
208 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/swiftshader/third_party/llvm-7.0/llvm/tools/obj2yaml/
Dobj2yaml.cpp32 Expected<OwningBinary<Binary>> BinaryOrErr = createBinary(File); in dumpInput() local
33 if (!BinaryOrErr) in dumpInput()
34 return BinaryOrErr.takeError(); in dumpInput()
36 Binary &Binary = *BinaryOrErr.get().getBinary(); in dumpInput()
/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/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-pdbutil/
DInputFile.cpp258 Expected<OwningBinary<Binary>> BinaryOrErr = createBinary(Path); in open() local
259 if (!BinaryOrErr) in open()
260 return BinaryOrErr.takeError(); in open()
262 IF.CoffObject = std::move(*BinaryOrErr); in open()
/external/swiftshader/third_party/llvm-7.0/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/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-readobj/
Dllvm-readobj.cpp569 Expected<OwningBinary<Binary>> BinaryOrErr = createBinary(File); in dumpInput() local
570 if (!BinaryOrErr) in dumpInput()
571 reportError(File, BinaryOrErr.takeError()); in dumpInput()
572 Binary &Binary = *BinaryOrErr.get().getBinary(); 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/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-objcopy/
Dllvm-objcopy.cpp539 Expected<OwningBinary<llvm::object::Binary>> BinaryOrErr = in ExecuteElfObjcopy() local
541 if (!BinaryOrErr) in ExecuteElfObjcopy()
542 reportError(Config.InputFilename, BinaryOrErr.takeError()); in ExecuteElfObjcopy()
544 if (Archive *Ar = dyn_cast<Archive>(BinaryOrErr.get().getBinary())) in ExecuteElfObjcopy()
548 ExecuteElfObjcopyOnBinary(Config, *BinaryOrErr.get().getBinary(), FB); in ExecuteElfObjcopy()
/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/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-cxxdump/
Dllvm-cxxdump.cpp517 Expected<OwningBinary<Binary>> BinaryOrErr = createBinary(File); in dumpInput() local
518 if (!BinaryOrErr) { in dumpInput()
519 auto EC = errorToErrorCode(BinaryOrErr.takeError()); in dumpInput()
523 Binary &Binary = *BinaryOrErr.get().getBinary(); in dumpInput()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Object/
DArchive.cpp525 auto BinaryOrErr = createBinary(BuffOrErr.get(), Context); in getAsBinary() local
526 if (BinaryOrErr) in getAsBinary()
527 return std::move(*BinaryOrErr); in getAsBinary()
528 return BinaryOrErr.takeError(); in getAsBinary()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-size/
Dllvm-size.cpp534 Expected<OwningBinary<Binary>> BinaryOrErr = createBinary(file); in printFileSectionSizes() local
535 if (!BinaryOrErr) { in printFileSectionSizes()
536 error(BinaryOrErr.takeError(), file); in printFileSectionSizes()
539 Binary &Bin = *BinaryOrErr.get().getBinary(); in printFileSectionSizes()
/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/swiftshader/third_party/llvm-7.0/llvm/tools/sancov/
Dsancov.cpp863 Expected<object::OwningBinary<object::Binary>> BinaryOrErr = in visitObjectFiles() local
865 if (!BinaryOrErr) in visitObjectFiles()
866 failIfError(BinaryOrErr); in visitObjectFiles()
868 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/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-nm/
Dllvm-nm.cpp1731 Expected<std::unique_ptr<Binary>> BinaryOrErr = createBinary( in dumpSymbolNamesFromFile() local
1733 if (!BinaryOrErr) { in dumpSymbolNamesFromFile()
1734 error(BinaryOrErr.takeError(), Filename); in dumpSymbolNamesFromFile()
1737 Binary &Bin = *BinaryOrErr.get(); in dumpSymbolNamesFromFile()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-objdump/
Dllvm-objdump.cpp2357 Expected<OwningBinary<Binary>> BinaryOrErr = createBinary(file); in DumpInput() local
2358 if (!BinaryOrErr) in DumpInput()
2359 report_error(file, BinaryOrErr.takeError()); in DumpInput()
2360 Binary &Binary = *BinaryOrErr.get().getBinary(); in DumpInput()
DMachODump.cpp1959 Expected<OwningBinary<Binary>> BinaryOrErr = createBinary(Filename); in ParseInputMachO() local
1960 if (!BinaryOrErr) { in ParseInputMachO()
1961 if (auto E = isNotObjectErrorInvalidFileType(BinaryOrErr.takeError())) in ParseInputMachO()
1967 Binary &Bin = *BinaryOrErr.get().getBinary(); in ParseInputMachO()