Home
last modified time | relevance | path

Searched refs:BufOrError (Results 1 – 3 of 3) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/InterfaceStub/
H A DELFObjHandler.cpp665 if (ErrorOr<std::unique_ptr<MemoryBuffer>> BufOrError = in writeELFBinaryToFile() local
669 if ((*BufOrError)->getBufferSize() == Builder.getSize() && in writeELFBinaryToFile()
670 !memcmp((*BufOrError)->getBufferStart(), Buf.data(), in writeELFBinaryToFile()
676 Expected<std::unique_ptr<FileOutputBuffer>> BufOrError = in writeELFBinaryToFile() local
678 if (!BufOrError) in writeELFBinaryToFile()
680 toString(BufOrError.takeError()) + in writeELFBinaryToFile()
685 std::unique_ptr<FileOutputBuffer> FileBuf = std::move(*BufOrError); in writeELFBinaryToFile()
/freebsd/contrib/llvm-project/llvm/tools/llvm-cov/
H A DCodeCoverage.cpp606 auto BufOrError = MemoryBuffer::getFile(OutputPath); in demangleSymbols() local
607 if (!BufOrError) { in demangleSymbols()
608 error(OutputPath, BufOrError.getError().message()); in demangleSymbols()
612 std::unique_ptr<MemoryBuffer> DemanglerBuf = std::move(*BufOrError); in demangleSymbols()
/freebsd/contrib/llvm-project/llvm/tools/llvm-profdata/
H A Dllvm-profdata.cpp563 auto BufOrError = MemoryBuffer::getFileOrSTDIN(InputFile); in create() local
564 if (!BufOrError) in create()
565 exitWithErrorCode(BufOrError.getError(), InputFile); in create()
568 Remapper->File = std::move(BufOrError.get()); in create()
1444 auto BufOrError = MemoryBuffer::getFileOrSTDIN(InputFile); in getInputFileBuf() local
1445 if (!BufOrError) in getInputFileBuf()
1446 exitWithErrorCode(BufOrError.getError(), InputFile); in getInputFileBuf()
1448 return std::move(*BufOrError); in getInputFileBuf()