Don't use a potentially expensive shift if all we want is one set bit.
[oota-llvm.git] / tools / bugpoint / CMakeLists.txt
index 731c7bf6f98ec1aa456d50c06b1fd855383c8a0b..0000d977acf301e5c5215a63eb9b4b8f6c3c7bd8 100644 (file)
@@ -1,3 +1,6 @@
+set(LLVM_LINK_COMPONENTS asmparser instrumentation scalaropts ipo
+  linker bitreader bitwriter irreader vectorize objcarcopts)
+
 add_llvm_tool(bugpoint
   BugDriver.cpp
   CrashDebugger.cpp
@@ -9,13 +12,4 @@ add_llvm_tool(bugpoint
   ToolRunner.cpp
   bugpoint.cpp
   )
-
-target_link_libraries(bugpoint
-  LLVMAsmParser
-  LLVMInstrumentation
-  LLVMScalarOpts
-  LLVMipo
-  LLVMLinker
-  LLVMBitReader
-  LLVMBitWriter
-  )
+set_target_properties(bugpoint PROPERTIES ENABLE_EXPORTS 1)