Searched refs:BufferOrErr (Results 1 – 11 of 11) sorted by relevance
42 ErrorOr<std::unique_ptr<FileOutputBuffer>> BufferOrErr = in TEST() local44 ASSERT_NO_ERROR(BufferOrErr.getError()); in TEST()45 std::unique_ptr<FileOutputBuffer> &Buffer = *BufferOrErr; in TEST()81 ErrorOr<std::unique_ptr<FileOutputBuffer>> BufferOrErr = in TEST() local83 ASSERT_NO_ERROR(BufferOrErr.getError()); in TEST()84 std::unique_ptr<FileOutputBuffer> &Buffer = *BufferOrErr; in TEST()102 ErrorOr<std::unique_ptr<FileOutputBuffer>> BufferOrErr = in TEST() local104 ASSERT_NO_ERROR(BufferOrErr.getError()); in TEST()105 std::unique_ptr<FileOutputBuffer> &Buffer = *BufferOrErr; in TEST()
67 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr = in isBitcodeFile() local69 if (!BufferOrErr) in isBitcodeFile()73 BufferOrErr.get()->getMemBufferRef()); in isBitcodeFile()112 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr = in createFromFile() local114 if (std::error_code EC = BufferOrErr.getError()) { in createFromFile()118 std::unique_ptr<MemoryBuffer> Buffer = std::move(BufferOrErr.get()); in createFromFile()133 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr = in createFromOpenFileSlice() local135 if (std::error_code EC = BufferOrErr.getError()) { in createFromOpenFileSlice()139 std::unique_ptr<MemoryBuffer> Buffer = std::move(BufferOrErr.get()); in createFromOpenFileSlice()
281 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr = in compileOptimized() local283 if (std::error_code EC = BufferOrErr.getError()) { in compileOptimized()292 return std::move(*BufferOrErr); in compileOptimized()
247 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr = in getLocalLTOModule() local249 error(BufferOrErr, "error loading file '" + Path + "'"); in getLocalLTOModule()250 Buffer = std::move(BufferOrErr.get()); in getLocalLTOModule()723 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr = in main() local725 error(BufferOrErr, "error loading file '" + Filename + "'"); in main()726 auto Buffer = std::move(BufferOrErr.get()); in main()
484 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr = in LineConsumer() local486 if (std::error_code EC = BufferOrErr.getError()) { in LineConsumer()490 Buffer = std::move(BufferOrErr.get()); in LineConsumer()
705 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr = in getModuleSummaryIndexForFile() local707 if (std::error_code EC = BufferOrErr.getError()) { in getModuleSummaryIndexForFile()711 Buffer = std::move(BufferOrErr.get()); in getModuleSummaryIndexForFile()
242 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> BufferOrErr = in readIndex() local244 if (!BufferOrErr) in readIndex()246 std::unique_ptr<llvm::MemoryBuffer> Buffer = std::move(BufferOrErr.get()); in readIndex()
23 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr = in setupMemoryBuffer() local25 if (std::error_code EC = BufferOrErr.getError()) in setupMemoryBuffer()27 return std::move(BufferOrErr.get()); in setupMemoryBuffer()
737 auto BufferOrErr = MemoryBuffer::getFileOrSTDIN(Filename); in setupMemoryBuffer() local738 if (std::error_code EC = BufferOrErr.getError()) in setupMemoryBuffer()740 auto Buffer = std::move(BufferOrErr.get()); in setupMemoryBuffer()
477 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr = in claim_file_hook() local480 if (std::error_code EC = BufferOrErr.getError()) { in claim_file_hook()484 Buffer = std::move(BufferOrErr.get()); in claim_file_hook()
1078 ErrorOr<std::unique_ptr<MemoryBuffer>> BufferOrErr = in dumpSymbolNamesFromFile() local1080 if (error(BufferOrErr.getError(), Filename)) in dumpSymbolNamesFromFile()1085 BufferOrErr.get()->getMemBufferRef(), NoLLVMBitcode ? nullptr : &Context); in dumpSymbolNamesFromFile()