Fix the build broken as a result of deleting jit from LLVM.

llvm-svn: 215119
GitOrigin-RevId: c3494340108a027ca8a7538cca545ce798abe5db
diff --git a/lib/Makefile b/lib/Makefile
index dcfdb3b..ee427d9 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -92,7 +92,7 @@
 include $(LLDB_LEVEL)/../../Makefile.config
 
 LINK_COMPONENTS := $(TARGETS_TO_BUILD) asmparser bitreader bitwriter codegen \
-                   instrumentation ipo irreader selectiondag jit mc mcjit \
+                   instrumentation ipo irreader selectiondag mc mcjit \
                    linker option
 
 ifeq ($(HOST_OS),Darwin)
diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt
index 46998af..517f4eb 100644
--- a/source/CMakeLists.txt
+++ b/source/CMakeLists.txt
@@ -181,7 +181,6 @@
 
 set( LLVM_LINK_COMPONENTS
   ${LLVM_TARGETS_TO_BUILD}
-  jit
   interpreter
   asmparser
   bitreader
diff --git a/source/Expression/IRExecutionUnit.cpp b/source/Expression/IRExecutionUnit.cpp
index 7695608..fb8ea1a 100644
--- a/source/Expression/IRExecutionUnit.cpp
+++ b/source/Expression/IRExecutionUnit.cpp
@@ -302,9 +302,7 @@
     .setRelocationModel(relocModel)
     .setJITMemoryManager(new MemoryManager(*this))
     .setOptLevel(llvm::CodeGenOpt::Less)
-    .setAllocateGVsWithCode(true)
-    .setCodeModel(codeModel)
-    .setUseMCJIT(true);
+    .setCodeModel(codeModel);
 
     llvm::StringRef mArch;
     llvm::StringRef mCPU;