Home
last modified time | relevance | path

Searched refs:MBOrErr (Results 1 – 10 of 10) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DCaching.cpp52 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = in localCache() local
57 if (MBOrErr) { in localCache()
58 AddBuffer(Task, ModuleName, std::move(*MBOrErr)); in localCache()
61 EC = MBOrErr.getError(); in localCache()
99 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = in localCache() local
103 if (!MBOrErr) in localCache()
106 MBOrErr.getError().message() + "\n"); in localCache()
123 auto MBCopy = MemoryBuffer::getMemBufferCopy((*MBOrErr)->getBuffer(), in localCache()
125 MBOrErr = std::move(MBCopy); in localCache()
138 AddBuffer(Task, ModuleName, std::move(*MBOrErr)); in localCache()
[all...]
H A DLockFileManager.cpp58 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = in readLockFile() local
60 if (!MBOrErr) { in readLockFile()
64 MemoryBuffer &MB = *MBOrErr.get(); in readLockFile()
/freebsd/contrib/llvm-project/llvm/lib/Debuginfod/
H A DHTTPServer.cpp44 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = in streamFile() local
49 if (Error Err = errorCodeToError(MBOrErr.getError())) { in streamFile()
56 MemoryBuffer *MB = MBOrErr->release(); in streamFile()
/freebsd/contrib/llvm-project/lld/ELF/
H A DLTO.cpp78 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = in createConfig() local
80 if (!MBOrErr) { in createConfig()
82 MBOrErr.getError().message()); in createConfig()
84 c.Options.BBSectionsFuncListBuf = std::move(*MBOrErr); in createConfig()
/freebsd/contrib/llvm-project/llvm/lib/LTO/
H A DLTOBackend.cpp635 ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> MBOrErr = in thinBackend() local
637 if (!MBOrErr) in thinBackend()
640 MBOrErr.getError())); in thinBackend()
642 Expected<BitcodeModule> BMOrErr = findThinLTOModule(**MBOrErr); in thinBackend()
654 (*MOrErr)->setOwnedMemoryBuffer(std::move(*MBOrErr)); in thinBackend()
H A DLTOModule.cpp174 Expected<MemoryBufferRef> MBOrErr = in parseBitcodeFileImpl() local
176 if (Error E = MBOrErr.takeError()) { in parseBitcodeFileImpl()
185 parseBitcodeFile(*MBOrErr, Context)); in parseBitcodeFileImpl()
191 getLazyBitcodeModule(*MBOrErr, Context, true /*ShouldLazyLoadMetadata*/)); in parseBitcodeFileImpl()
H A DThinLTOCodeGenerator.cpp410 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = MemoryBuffer::getOpenFile( in tryLoadingBuffer() local
413 return MBOrErr; in tryLoadingBuffer()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DCommandFlags.cpp533 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = in getBBSectionsMode() local
535 if (!MBOrErr) { in getBBSectionsMode()
537 << MBOrErr.getError().message() << "\n"; in getBBSectionsMode()
539 Options.BBSectionsFuncListBuf = std::move(*MBOrErr); in getBBSectionsMode()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DBackendUtil.cpp404 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = in initTargetOptions() local
406 if (!MBOrErr) { in initTargetOptions()
408 << MBOrErr.getError().message(); in initTargetOptions()
411 Options.BBSectionsFuncListBuf = std::move(*MBOrErr); in initTargetOptions()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DCore.cpp4412 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = MemoryBuffer::getFile(Path); in LLVMCreateMemoryBufferWithContentsOfFile() local
4413 if (std::error_code EC = MBOrErr.getError()) { in LLVMCreateMemoryBufferWithContentsOfFile()
4417 *OutMemBuf = wrap(MBOrErr.get().release()); in LLVMCreateMemoryBufferWithContentsOfFile()
4423 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = MemoryBuffer::getSTDIN(); in LLVMCreateMemoryBufferWithSTDIN() local
4424 if (std::error_code EC = MBOrErr.getError()) { in LLVMCreateMemoryBufferWithSTDIN()
4428 *OutMemBuf = wrap(MBOrErr.get().release()); in LLVMCreateMemoryBufferWithSTDIN()