llvm.org GIT mirror llvm / 8cc929e
ExceptionDemo: Let setMCJITMemoryManager() take unique_ptr, since r223183. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223188 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 4 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
19601960 llvm::make_unique("my cool jit", context);
19611961 llvm::Module *module = Owner.get();
19621962
1963 llvm::RTDyldMemoryManager *MemMgr = new llvm::SectionMemoryManager();
1963 std::unique_ptr MemMgr(new llvm::SectionMemoryManager());
19641964
19651965 // Build engine with JIT
19661966 llvm::EngineBuilder factory(std::move(Owner));
19671967 factory.setEngineKind(llvm::EngineKind::JIT);
19681968 factory.setTargetOptions(Opts);
1969 factory.setMCJITMemoryManager(MemMgr);
1969 factory.setMCJITMemoryManager(std::move(MemMgr));
19701970 llvm::ExecutionEngine *executionEngine = factory.create();
19711971
19721972 {