Home
last modified time | relevance | path

Searched refs:BufOrErr (Results 1 – 15 of 15) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Object/
DArchive.cpp620 Expected<StringRef> BufOrErr = C->getBuffer(); in Archive() local
621 if (!BufOrErr) { in Archive()
622 Err = BufOrErr.takeError(); in Archive()
625 SymbolTable = BufOrErr.get(); in Archive()
646 Expected<StringRef> BufOrErr = C->getBuffer(); in Archive() local
647 if (!BufOrErr) { in Archive()
648 Err = BufOrErr.takeError(); in Archive()
651 SymbolTable = BufOrErr.get(); in Archive()
659 Expected<StringRef> BufOrErr = C->getBuffer(); in Archive() local
660 if (!BufOrErr) { in Archive()
[all …]
DArchiveWriter.cpp45 Expected<llvm::MemoryBufferRef> BufOrErr = OldMember.getMemoryBufferRef(); in getOldMember() local
46 if (!BufOrErr) in getOldMember()
47 return BufOrErr.takeError(); in getOldMember()
51 M.Buf = MemoryBuffer::getMemBuffer(*BufOrErr, false); in getOldMember()
/external/llvm/lib/DebugInfo/Symbolize/
DDIPrinter.cpp43 ErrorOr<std::unique_ptr<MemoryBuffer>> BufOrErr = in printContext() local
45 if (!BufOrErr) in printContext()
48 std::unique_ptr<MemoryBuffer> Buf = std::move(BufOrErr.get()); in printContext()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/DebugInfo/Symbolize/
DDIPrinter.cpp43 ErrorOr<std::unique_ptr<MemoryBuffer>> BufOrErr = in printContext() local
45 if (!BufOrErr) in printContext()
48 std::unique_ptr<MemoryBuffer> Buf = std::move(BufOrErr.get()); in printContext()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/sancov/
Dsancov.cpp230 ErrorOr<std::unique_ptr<MemoryBuffer>> BufOrErr = in read() local
232 if (!BufOrErr) in read()
233 return BufOrErr.getError(); in read()
234 std::unique_ptr<MemoryBuffer> Buf = std::move(BufOrErr.get()); in read()
463 ErrorOr<std::unique_ptr<MemoryBuffer>> BufOrErr = in read() local
465 failIfError(BufOrErr); in read()
468 yaml::Stream S(**BufOrErr, SM); in read()
911 ErrorOr<std::unique_ptr<MemoryBuffer>> BufOrErr = in isCoverageFile() local
913 if (!BufOrErr) { in isCoverageFile()
914 errs() << "Warning: " << BufOrErr.getError().message() << "(" in isCoverageFile()
[all …]
/external/llvm/tools/sancov/
Dsancov.cc535 ErrorOr<std::unique_ptr<MemoryBuffer>> BufOrErr = in isCoverageFile() local
537 if (!BufOrErr) { in isCoverageFile()
538 errs() << "Warning: " << BufOrErr.getError().message() << "(" in isCoverageFile()
539 << BufOrErr.getError().value() in isCoverageFile()
541 return BufOrErr.getError(); in isCoverageFile()
543 std::unique_ptr<MemoryBuffer> Buf = std::move(BufOrErr.get()); in isCoverageFile()
574 ErrorOr<std::unique_ptr<MemoryBuffer>> BufOrErr = in read() local
576 if (!BufOrErr) in read()
577 return BufOrErr.getError(); in read()
578 std::unique_ptr<MemoryBuffer> Buf = std::move(BufOrErr.get()); in read()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/FuzzMutate/
DFuzzerCLI.cpp156 auto BufOrErr = MemoryBuffer::getFile(Arg, /*FileSize-*/ -1, in runFuzzerOnInputs() local
158 if (std::error_code EC = BufOrErr.getError()) { in runFuzzerOnInputs()
162 std::unique_ptr<MemoryBuffer> Buf = std::move(BufOrErr.get()); in runFuzzerOnInputs()
/external/swiftshader/third_party/llvm-7.0/llvm/utils/yaml-bench/
DYAMLBench.cpp203 ErrorOr<std::unique_ptr<MemoryBuffer>> BufOrErr = in main() local
205 if (!BufOrErr) in main()
207 MemoryBuffer &Buf = *BufOrErr.get(); in main()
/external/llvm/utils/yaml-bench/
DYAMLBench.cpp201 ErrorOr<std::unique_ptr<MemoryBuffer>> BufOrErr = in main() local
203 if (!BufOrErr) in main()
205 MemoryBuffer &Buf = *BufOrErr.get(); in main()
/external/llvm/lib/Object/
DArchiveWriter.cpp43 ErrorOr<llvm::MemoryBufferRef> BufOrErr = OldMember.getMemoryBufferRef(); in getOldMember() local
44 if (!BufOrErr) in getOldMember()
45 return errorCodeToError(BufOrErr.getError()); in getOldMember()
48 M.Buf = MemoryBuffer::getMemBuffer(*BufOrErr, false); in getOldMember()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-ar/
Dllvm-ar.cpp399 Expected<StringRef> BufOrErr = C.getBuffer(); in doExtract() local
400 failIfError(BufOrErr.takeError()); in doExtract()
401 StringRef Data = BufOrErr.get(); in doExtract()
810 auto BufOrErr = MemoryBuffer::getFile(Rest, -1, false); in runMRIScript() local
811 failIfError(BufOrErr.getError(), "Could not open library"); in runMRIScript()
812 ArchiveBuffers.push_back(std::move(*BufOrErr)); in runMRIScript()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-objcopy/
Dllvm-objcopy.cpp450 auto BufOrErr = MemoryBuffer::getFile(File); in HandleArgs() local
451 if (!BufOrErr) in HandleArgs()
452 reportError(File, BufOrErr.getError()); in HandleArgs()
453 auto Buf = std::move(*BufOrErr); in HandleArgs()
/external/llvm/tools/llvm-ar/
Dllvm-ar.cpp760 auto BufOrErr = MemoryBuffer::getFile(Rest, -1, false); in runMRIScript() local
761 failIfError(BufOrErr.getError(), "Could not open library"); in runMRIScript()
762 ArchiveBuffers.push_back(std::move(*BufOrErr)); in runMRIScript()
/external/llvm/tools/llvm-objdump/
DMachODump.cpp6563 ErrorOr<std::unique_ptr<MemoryBuffer>> BufOrErr = in DisassembleMachO() local
6565 if (std::error_code EC = BufOrErr.getError()) { in DisassembleMachO()
6570 ObjectFile::createMachOObjectFile(BufOrErr.get()->getMemBufferRef()) in DisassembleMachO()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-objdump/
DMachODump.cpp6943 ErrorOr<std::unique_ptr<MemoryBuffer>> BufOrErr = in DisassembleMachO() local
6945 if (std::error_code EC = BufOrErr.getError()) { in DisassembleMachO()
6950 ObjectFile::createMachOObjectFile(BufOrErr.get()->getMemBufferRef()); in DisassembleMachO()