Fixes build of bugpoint, llvm-ld and opt.
OK for commit?
---
CMakeLists.txt | 1 +
tools/bugpoint/CMakeLists.txt | 2 +-
tools/llvm-ld/CMakeLists.txt | 2 +-
tools/opt/CMakeLists.txt | 2 +-
4 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9bce039..0edd509 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -295,6 +295,7 @@ add_subdirectory(lib/CodeGen/AsmPrinter)
add_subdirectory(lib/Bitcode/Reader)
add_subdirectory(lib/Bitcode/Writer)
add_subdirectory(lib/Transforms/Utils)
+add_subdirectory(lib/Transforms/InstCombine)
add_subdirectory(lib/Transforms/Instrumentation)
add_subdirectory(lib/Transforms/Scalar)
add_subdirectory(lib/Transforms/IPO)
diff --git a/tools/bugpoint/CMakeLists.txt b/tools/bugpoint/CMakeLists.txt
index 90f24ba..fd32a68 100644
--- a/tools/bugpoint/CMakeLists.txt
+++ b/tools/bugpoint/CMakeLists.txt
@@ -1,4 +1,4 @@
-set(LLVM_LINK_COMPONENTS asmparser instrumentation scalaropts ipo
+set(LLVM_LINK_COMPONENTS asmparser instcombine instrumentation scalaropts ipo
linker bitreader bitwriter)
set(LLVM_REQUIRES_EH 1)
diff --git a/tools/llvm-ld/CMakeLists.txt b/tools/llvm-ld/CMakeLists.txt
index 2ae4a1d..257d1e9 100644
--- a/tools/llvm-ld/CMakeLists.txt
+++ b/tools/llvm-ld/CMakeLists.txt
@@ -1,4 +1,4 @@
-set(LLVM_LINK_COMPONENTS ipo scalaropts linker archive bitwriter)
+set(LLVM_LINK_COMPONENTS ipo scalaropts instcombine linker archive bitwriter)
add_llvm_tool(llvm-ld
Optimize.cpp
diff --git a/tools/opt/CMakeLists.txt b/tools/opt/CMakeLists.txt
index 0570d0e..912acfa 100644
--- a/tools/opt/CMakeLists.txt
+++ b/tools/opt/CMakeLists.txt
@@ -1,4 +1,4 @@
-set(LLVM_LINK_COMPONENTS bitreader asmparser bitwriter instrumentation
scalaropts ipo)
+set(LLVM_LINK_COMPONENTS bitreader asmparser bitwriter instcombine
instrumentation scalaropts ipo)
add_llvm_tool(opt
AnalysisWrappers.cpp
--
1.6.5.3