diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-05-14 23:05:00 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-05-14 23:05:00 +0000 |
commit | b734a9dbc65a4a219bb3d0167cb2f4f4b3f3bd5c (patch) | |
tree | be7949b99996b6a52d60214c24b27f1c0df6fc9e | |
parent | 9dab0cc6c3caa7fe6b5c8a3f94c4c49b7a4a3b1c (diff) | |
download | bcm5719-llvm-b734a9dbc65a4a219bb3d0167cb2f4f4b3f3bd5c.tar.gz bcm5719-llvm-b734a9dbc65a4a219bb3d0167cb2f4f4b3f3bd5c.zip |
ExceptionDemo: Corresponding to r181820, SectionMemoryManager should belong to RTDyldMemoryManager.
llvm-svn: 181844
-rw-r--r-- | llvm/examples/ExceptionDemo/ExceptionDemo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/examples/ExceptionDemo/ExceptionDemo.cpp b/llvm/examples/ExceptionDemo/ExceptionDemo.cpp index cf39ea77929..7d8e5729c23 100644 --- a/llvm/examples/ExceptionDemo/ExceptionDemo.cpp +++ b/llvm/examples/ExceptionDemo/ExceptionDemo.cpp @@ -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(); |