Skip to content

Commit

Permalink
ExceptionDemo: Corresponding to r181820, SectionMemoryManager should …
Browse files Browse the repository at this point in the history
…belong to RTDyldMemoryManager.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181844 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
chapuni committed May 14, 2013
1 parent ebb9f17 commit 3c2b0e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/ExceptionDemo/ExceptionDemo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 3c2b0e1

Please sign in to comment.