diff options
| author | Zachary Turner <zturner@google.com> | 2014-08-07 23:26:01 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2014-08-07 23:26:01 +0000 |
| commit | d867520d0b6a6c7354f1a47302f70a1da83f72c7 (patch) | |
| tree | 1895346c5ae6bb0e406eadd73f0cad05adcc9808 | |
| parent | ea96a3d3361326ee1707f0785bbc4c0207acd8de (diff) | |
| download | bcm5719-llvm-d867520d0b6a6c7354f1a47302f70a1da83f72c7.tar.gz bcm5719-llvm-d867520d0b6a6c7354f1a47302f70a1da83f72c7.zip | |
Revert "Fix the build broken as a result of deleting jit from LLVM."
jit was re-added back to LLVM, so now we require to link against it
again. Should it get removed again, then revert this revert.
llvm-svn: 215170
| -rw-r--r-- | lldb/lib/Makefile | 2 | ||||
| -rw-r--r-- | lldb/source/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | lldb/source/Expression/IRExecutionUnit.cpp | 4 |
3 files changed, 5 insertions, 2 deletions
diff --git a/lldb/lib/Makefile b/lldb/lib/Makefile index ee427d9f2f3..dcfdb3b300a 100644 --- a/lldb/lib/Makefile +++ b/lldb/lib/Makefile @@ -92,7 +92,7 @@ endif include $(LLDB_LEVEL)/../../Makefile.config LINK_COMPONENTS := $(TARGETS_TO_BUILD) asmparser bitreader bitwriter codegen \ - instrumentation ipo irreader selectiondag mc mcjit \ + instrumentation ipo irreader selectiondag jit mc mcjit \ linker option ifeq ($(HOST_OS),Darwin) diff --git a/lldb/source/CMakeLists.txt b/lldb/source/CMakeLists.txt index 517f4eb64de..46998af8b93 100644 --- a/lldb/source/CMakeLists.txt +++ b/lldb/source/CMakeLists.txt @@ -181,6 +181,7 @@ list(APPEND LLDB_SYSTEM_LIBS ${system_libs}) set( LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} + jit interpreter asmparser bitreader diff --git a/lldb/source/Expression/IRExecutionUnit.cpp b/lldb/source/Expression/IRExecutionUnit.cpp index fb8ea1a3587..76956082da0 100644 --- a/lldb/source/Expression/IRExecutionUnit.cpp +++ b/lldb/source/Expression/IRExecutionUnit.cpp @@ -302,7 +302,9 @@ IRExecutionUnit::GetRunnableInfo(Error &error, .setRelocationModel(relocModel) .setJITMemoryManager(new MemoryManager(*this)) .setOptLevel(llvm::CodeGenOpt::Less) - .setCodeModel(codeModel); + .setAllocateGVsWithCode(true) + .setCodeModel(codeModel) + .setUseMCJIT(true); llvm::StringRef mArch; llvm::StringRef mCPU; |

