Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/llvm/lib/InterfaceStub/
H A DELFObjHandler.cpp606 if (ErrorOr<std::unique_ptr<MemoryBuffer>> BufOrError = in writeELFBinaryToFile() local
610 if ((*BufOrError)->getBufferSize() == Builder.getSize() && in writeELFBinaryToFile()
611 !memcmp((*BufOrError)->getBufferStart(), Buf.data(), in writeELFBinaryToFile()
617 Expected<std::unique_ptr<FileOutputBuffer>> BufOrError = in writeELFBinaryToFile() local
619 if (!BufOrError) in writeELFBinaryToFile()
621 toString(BufOrError.takeError()) + in writeELFBinaryToFile()
626 std::unique_ptr<FileOutputBuffer> FileBuf = std::move(*BufOrError); in writeELFBinaryToFile()
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-profdata/
H A Dllvm-profdata.cpp156 auto BufOrError = MemoryBuffer::getFileOrSTDIN(InputFile); in create() local
157 if (!BufOrError) in create()
158 exitWithErrorCode(BufOrError.getError(), InputFile); in create()
161 Remapper->File = std::move(BufOrError.get()); in create()
632 auto BufOrError = MemoryBuffer::getFileOrSTDIN(InputFile); in getInputFileBuf() local
633 if (!BufOrError) in getInputFileBuf()
634 exitWithErrorCode(BufOrError.getError(), InputFile); in getInputFileBuf()
636 return std::move(*BufOrError); in getInputFileBuf()
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-cov/
H A DCodeCoverage.cpp571 auto BufOrError = MemoryBuffer::getFile(OutputPath); in demangleSymbols() local
572 if (!BufOrError) { in demangleSymbols()
573 error(OutputPath, BufOrError.getError().message()); in demangleSymbols()
577 std::unique_ptr<MemoryBuffer> DemanglerBuf = std::move(*BufOrError); in demangleSymbols()