mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:29:51 +00:00
ExceptionDemo: Let setMCJITMemoryManager() take unique_ptr, since r223183.
llvm-svn: 223188
This commit is contained in:
parent
ac111e2226
commit
7ce4513859
@ -1961,13 +1961,13 @@ int main(int argc, char *argv[]) {
|
||||
llvm::make_unique<llvm::Module>("my cool jit", context);
|
||||
llvm::Module *module = Owner.get();
|
||||
|
||||
llvm::RTDyldMemoryManager *MemMgr = new llvm::SectionMemoryManager();
|
||||
std::unique_ptr<llvm::RTDyldMemoryManager> MemMgr(new llvm::SectionMemoryManager());
|
||||
|
||||
// Build engine with JIT
|
||||
llvm::EngineBuilder factory(std::move(Owner));
|
||||
factory.setEngineKind(llvm::EngineKind::JIT);
|
||||
factory.setTargetOptions(Opts);
|
||||
factory.setMCJITMemoryManager(MemMgr);
|
||||
factory.setMCJITMemoryManager(std::move(MemMgr));
|
||||
llvm::ExecutionEngine *executionEngine = factory.create();
|
||||
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user