ExceptionDemo: Corresponding to r181820, SectionMemoryManager should belong to RTDyld...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 14 May 2013 23:05:00 +0000 (23:05 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 14 May 2013 23:05:00 +0000 (23:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181844 91177308-0d34-0410-b5e6-96231b3b80d8

examples/ExceptionDemo/ExceptionDemo.cpp

index cf39ea7792930ad00a6909cea3ace6e7bd49b3e6..7d8e5729c231fea38054114a91ad21e236f9d0ad 100644 (file)
@@ -1959,14 +1959,14 @@ int main(int argc, char *argv[]) {
   // Make the module, which holds all the code.
   llvm::Module *module = new llvm::Module("my cool jit", context);
 
-  llvm::JITMemoryManager *MemMgr = new llvm::SectionMemoryManager();
+  llvm::RTDyldMemoryManager *MemMgr = new llvm::SectionMemoryManager();
 
   // Build engine with JIT
   llvm::EngineBuilder factory(module);
   factory.setEngineKind(llvm::EngineKind::JIT);
   factory.setAllocateGVsWithCode(false);
   factory.setTargetOptions(Opts);
-  factory.setJITMemoryManager(MemMgr);
+  factory.setMCJITMemoryManager(MemMgr);
   factory.setUseMCJIT(true);
   llvm::ExecutionEngine *executionEngine = factory.create();