[lldb] Use OrcMCJITReplacement rather than MCJIT as the underlying JIT for LLDB
authorLang Hames <lhames@gmail.com>
Fri, 19 Aug 2016 21:27:16 +0000 (21:27 +0000)
committerLang Hames <lhames@gmail.com>
Fri, 19 Aug 2016 21:27:16 +0000 (21:27 +0000)
expression evaluation.

OrcMCJITReplacement is a reimplementation of MCJIT using ORC components, and
provides an easy upgrade path to ORC for existing MCJIT clients. There should be
no functional changes resulting from this switch.

llvm-svn: 279327

lldb/source/Expression/IRExecutionUnit.cpp

index 103d763..dc4b792 100644 (file)
@@ -308,7 +308,8 @@ IRExecutionUnit::GetRunnableInfo(Error &error,
     .setRelocationModel(relocModel)
     .setMCJITMemoryManager(std::unique_ptr<MemoryManager>(new MemoryManager(*this)))
     .setCodeModel(codeModel)
-    .setOptLevel(llvm::CodeGenOpt::Less);
+    .setOptLevel(llvm::CodeGenOpt::Less)
+    .setUseOrcMCJITReplacement(true);
 
     llvm::StringRef mArch;
     llvm::StringRef mCPU;