Home
last modified time | relevance | path

Searched refs:ModuleOrErr (Results 1 – 6 of 6) sorted by relevance

/external/llvm/lib/Bitcode/Reader/
DBitReader.cpp57 ErrorOr<std::unique_ptr<Module>> ModuleOrErr = parseBitcodeFile(Buf, Ctx); in LLVMParseBitcodeInContext() local
61 if (ModuleOrErr.getError()) { in LLVMParseBitcodeInContext()
68 *OutModule = wrap(ModuleOrErr.get().release()); in LLVMParseBitcodeInContext()
78 ErrorOr<std::unique_ptr<Module>> ModuleOrErr = parseBitcodeFile(Buf, Ctx); in LLVMParseBitcodeInContext2() local
79 if (ModuleOrErr.getError()) { in LLVMParseBitcodeInContext2()
84 *OutModule = wrap(ModuleOrErr.get().release()); in LLVMParseBitcodeInContext2()
103 ErrorOr<std::unique_ptr<Module>> ModuleOrErr = in LLVMGetBitcodeModuleInContext() local
108 if (ModuleOrErr.getError()) { in LLVMGetBitcodeModuleInContext()
115 *OutM = wrap(ModuleOrErr.get().release()); in LLVMGetBitcodeModuleInContext()
126 ErrorOr<std::unique_ptr<Module>> ModuleOrErr = in LLVMGetBitcodeModuleInContext2() local
[all …]
/external/llvm/lib/IRReader/
DIRReader.cpp37 ErrorOr<std::unique_ptr<Module>> ModuleOrErr = getLazyBitcodeModule( in getLazyIRModule() local
39 if (std::error_code EC = ModuleOrErr.getError()) { in getLazyIRModule()
44 return std::move(ModuleOrErr.get()); in getLazyIRModule()
72 ErrorOr<std::unique_ptr<Module>> ModuleOrErr = in parseIR() local
74 if (std::error_code EC = ModuleOrErr.getError()) { in parseIR()
79 return std::move(ModuleOrErr.get()); in parseIR()
/external/llvm/lib/LTO/
DLTO.cpp26 ErrorOr<std::unique_ptr<Module>> ModuleOrErr(nullptr); in loadModuleFromBuffer() local
28 ModuleOrErr = in loadModuleFromBuffer()
32 ModuleOrErr = parseBitcodeFile(Buffer, Context); in loadModuleFromBuffer()
34 if (std::error_code EC = ModuleOrErr.getError()) { in loadModuleFromBuffer()
40 return std::move(ModuleOrErr.get()); in loadModuleFromBuffer()
/external/llvm/unittests/Bitcode/
DBitReaderTest.cpp60 ErrorOr<std::unique_ptr<Module>> ModuleOrErr = in getLazyModuleFromAssembly() local
62 return std::move(ModuleOrErr.get()); in getLazyModuleFromAssembly()
89 ErrorOr<std::unique_ptr<Module>> ModuleOrErr = in getStreamedModuleFromAssembly() local
91 return std::move(ModuleOrErr.get()); in getStreamedModuleFromAssembly()
/external/clang/lib/CodeGen/
DCodeGenAction.cpp734 ErrorOr<std::unique_ptr<llvm::Module>> ModuleOrErr = in CreateASTConsumer() local
736 if (std::error_code EC = ModuleOrErr.getError()) { in CreateASTConsumer()
742 addLinkModule(ModuleOrErr.get().release(), I.first); in CreateASTConsumer()
/external/llvm/tools/llvm-lto/
Dllvm-lto.cpp773 ErrorOr<std::unique_ptr<LTOModule>> ModuleOrErr = in main() local
775 std::unique_ptr<LTOModule> &Module = *ModuleOrErr; in main()