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 | 3c2b0e171f02f2bd0c2506101a1d6e66d7e9bdee (patch) | |
tree | d8877342efdff378ecf28f14a4b7ddd5c21798f0 /examples | |
parent | ebb9f17240dd72f3983d2de884d77f03d6eea4c8 (diff) | |
download | external_llvm-3c2b0e171f02f2bd0c2506101a1d6e66d7e9bdee.zip external_llvm-3c2b0e171f02f2bd0c2506101a1d6e66d7e9bdee.tar.gz external_llvm-3c2b0e171f02f2bd0c2506101a1d6e66d7e9bdee.tar.bz2 |
ExceptionDemo: Corresponding to r181820, SectionMemoryManager should belong to RTDyldMemoryManager.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181844 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
-rw-r--r-- | examples/ExceptionDemo/ExceptionDemo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/ExceptionDemo/ExceptionDemo.cpp b/examples/ExceptionDemo/ExceptionDemo.cpp index cf39ea7..7d8e572 100644 --- a/examples/ExceptionDemo/ExceptionDemo.cpp +++ b/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(); |