Searched refs:BufOrError (Results 1 – 8 of 8) sorted by relevance
/external/llvm-project/llvm/tools/llvm-elfabi/ |
D | llvm-elfabi.cpp | 83 ErrorOr<std::unique_ptr<MemoryBuffer>> BufOrError = in readInputFile() local 85 if (!BufOrError) { in readInputFile() 86 return createStringError(BufOrError.getError(), "Could not open `%s`", in readInputFile() 90 std::unique_ptr<MemoryBuffer> FileReadBuffer = std::move(*BufOrError); in readInputFile()
|
/external/llvm-project/llvm/tools/llvm-profgen/ |
D | PerfReader.h | 283 auto BufOrError = MemoryBuffer::getFileOrSTDIN(FileName, 4000); in isHybridPerfScript() local 284 if (!BufOrError) in isHybridPerfScript() 285 exitWithError(BufOrError.getError(), FileName); in isHybridPerfScript() 286 auto Buffer = std::move(BufOrError.get()); in isHybridPerfScript()
|
/external/llvm-project/clang-tools-extra/clangd/ |
D | QueryDriverDatabase.cpp | 214 auto BufOrError = llvm::MemoryBuffer::getFile(StdErrPath); in extractSystemIncludesAndTarget() local 215 if (!BufOrError) { in extractSystemIncludesAndTarget() 217 StdErrPath, BufOrError.getError().message()); in extractSystemIncludesAndTarget() 222 parseDriverOutput(BufOrError->get()->getBuffer()); in extractSystemIncludesAndTarget()
|
/external/llvm-project/llvm/tools/llvm-ifs/ |
D | llvm-ifs.cpp | 178 ErrorOr<std::unique_ptr<MemoryBuffer>> BufOrError = in readInputFile() local 180 if (!BufOrError) in readInputFile() 181 return createStringError(BufOrError.getError(), "Could not open `%s`", in readInputFile() 184 std::unique_ptr<MemoryBuffer> FileReadBuffer = std::move(*BufOrError); in readInputFile()
|
/external/llvm/tools/llvm-profdata/ |
D | llvm-profdata.cpp | 231 auto BufOrError = MemoryBuffer::getFileOrSTDIN(InputFilenamesFile); in getInputFilenamesFileBuf() local 232 if (!BufOrError) in getInputFilenamesFileBuf() 233 exitWithErrorCode(BufOrError.getError(), InputFilenamesFile); in getInputFilenamesFileBuf() 235 return std::move(*BufOrError); in getInputFilenamesFileBuf()
|
/external/llvm-project/llvm/lib/InterfaceStub/ |
D | ELFObjHandler.cpp | 668 Expected<std::unique_ptr<FileOutputBuffer>> BufOrError = in writeELFBinaryToFile() local 670 if (!BufOrError) in writeELFBinaryToFile() 672 toString(BufOrError.takeError()) + in writeELFBinaryToFile() 677 std::unique_ptr<FileOutputBuffer> Buf = std::move(*BufOrError); in writeELFBinaryToFile()
|
/external/llvm-project/llvm/tools/llvm-cov/ |
D | CodeCoverage.cpp | 500 auto BufOrError = MemoryBuffer::getFile(OutputPath); in demangleSymbols() local 501 if (!BufOrError) { in demangleSymbols() 502 error(OutputPath, BufOrError.getError().message()); in demangleSymbols() 506 std::unique_ptr<MemoryBuffer> DemanglerBuf = std::move(*BufOrError); in demangleSymbols()
|
/external/llvm-project/llvm/tools/llvm-profdata/ |
D | llvm-profdata.cpp | 147 auto BufOrError = MemoryBuffer::getFileOrSTDIN(InputFile); in create() local 148 if (!BufOrError) in create() 149 exitWithErrorCode(BufOrError.getError(), InputFile); in create() 152 Remapper->File = std::move(BufOrError.get()); in create() 600 auto BufOrError = MemoryBuffer::getFileOrSTDIN(InputFile); in getInputFileBuf() local 601 if (!BufOrError) in getInputFileBuf() 602 exitWithErrorCode(BufOrError.getError(), InputFile); in getInputFileBuf() 604 return std::move(*BufOrError); in getInputFileBuf()
|