Home
last modified time | relevance | path

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

/external/swiftshader/third_party/llvm-7.0/llvm/lib/LTO/
DCaching.cpp47 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = in localCache() local
52 if (MBOrErr) { in localCache()
53 AddBuffer(Task, std::move(*MBOrErr)); in localCache()
56 EC = MBOrErr.getError(); in localCache()
89 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = in localCache() local
93 if (!MBOrErr) in localCache()
96 MBOrErr.getError().message() + "\n"); in localCache()
113 auto MBCopy = MemoryBuffer::getMemBufferCopy((*MBOrErr)->getBuffer(), in localCache()
115 MBOrErr = std::move(MBCopy); in localCache()
128 AddBuffer(Task, std::move(*MBOrErr)); in localCache()
DLTOModule.cpp172 Expected<MemoryBufferRef> MBOrErr = in parseBitcodeFileImpl() local
174 if (Error E = MBOrErr.takeError()) { in parseBitcodeFileImpl()
183 parseBitcodeFile(*MBOrErr, Context)); in parseBitcodeFileImpl()
189 getLazyBitcodeModule(*MBOrErr, Context, true /*ShouldLazyLoadMetadata*/)); in parseBitcodeFileImpl()
DThinLTOCodeGenerator.cpp406 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = in tryLoadingBuffer() local
411 return MBOrErr; in tryLoadingBuffer()
/external/llvm/tools/sanstats/
Dsanstats.cpp116 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = in main() local
118 if (!MBOrErr) { in main()
120 << MBOrErr.getError().message() << '\n'; in main()
123 std::unique_ptr<MemoryBuffer> MB = std::move(MBOrErr.get()); in main()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/sanstats/
Dsanstats.cpp119 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = in main() local
121 if (!MBOrErr) { in main()
123 << MBOrErr.getError().message() << '\n'; in main()
126 std::unique_ptr<MemoryBuffer> MB = std::move(MBOrErr.get()); in main()
/external/llvm/tools/llvm-dis/
Dllvm-dis.cpp143 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = in openInputFile() local
145 if (!MBOrErr) in openInputFile()
146 return errorCodeToError(MBOrErr.getError()); in openInputFile()
148 getLazyBitcodeModule(std::move(*MBOrErr), Context, in openInputFile()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
DTarWriterTest.cpp56 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = MemoryBuffer::getFile(Path); in createTar() local
57 EXPECT_TRUE((bool)MBOrErr); in createTar()
58 std::unique_ptr<MemoryBuffer> MB = std::move(*MBOrErr); in createTar()
/external/llvm/lib/Support/
DLockFileManager.cpp45 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = in readLockFile() local
47 if (!MBOrErr) { in readLockFile()
51 MemoryBuffer &MB = *MBOrErr.get(); in readLockFile()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DLockFileManager.cpp55 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = in readLockFile() local
57 if (!MBOrErr) { in readLockFile()
61 MemoryBuffer &MB = *MBOrErr.get(); in readLockFile()
/external/llvm/lib/LTO/
DLTOModule.cpp173 ErrorOr<MemoryBufferRef> MBOrErr = in parseBitcodeFileImpl() local
175 if (std::error_code EC = MBOrErr.getError()) { in parseBitcodeFileImpl()
182 ErrorOr<std::unique_ptr<Module>> M = parseBitcodeFile(*MBOrErr, Context); in parseBitcodeFileImpl()
190 MemoryBuffer::getMemBuffer(*MBOrErr, false); in parseBitcodeFileImpl()
/external/llvm/lib/IR/
DCore.cpp3133 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = MemoryBuffer::getFile(Path); in LLVMCreateMemoryBufferWithContentsOfFile() local
3134 if (std::error_code EC = MBOrErr.getError()) { in LLVMCreateMemoryBufferWithContentsOfFile()
3138 *OutMemBuf = wrap(MBOrErr.get().release()); in LLVMCreateMemoryBufferWithContentsOfFile()
3144 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = MemoryBuffer::getSTDIN(); in LLVMCreateMemoryBufferWithSTDIN() local
3145 if (std::error_code EC = MBOrErr.getError()) { in LLVMCreateMemoryBufferWithSTDIN()
3149 *OutMemBuf = wrap(MBOrErr.get().release()); in LLVMCreateMemoryBufferWithSTDIN()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DCore.cpp3450 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = MemoryBuffer::getFile(Path); in LLVMCreateMemoryBufferWithContentsOfFile() local
3451 if (std::error_code EC = MBOrErr.getError()) { in LLVMCreateMemoryBufferWithContentsOfFile()
3455 *OutMemBuf = wrap(MBOrErr.get().release()); in LLVMCreateMemoryBufferWithContentsOfFile()
3461 ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr = MemoryBuffer::getSTDIN(); in LLVMCreateMemoryBufferWithSTDIN() local
3462 if (std::error_code EC = MBOrErr.getError()) { in LLVMCreateMemoryBufferWithSTDIN()
3466 *OutMemBuf = wrap(MBOrErr.get().release()); in LLVMCreateMemoryBufferWithSTDIN()