Verifier: Call verifyModule() from llc and opt
[oota-llvm.git] / tools / llc / CMakeLists.txt
index 798578e7bb77fd9a79afdf4c6bb482d0ad1a9ceb..dcbcf9da6128be8658c23129b660e9053cf939bd 100644 (file)
@@ -1,6 +1,20 @@
+set(LLVM_LINK_COMPONENTS
+  ${LLVM_TARGETS_TO_BUILD}
+  Analysis
+  AsmPrinter
+  CodeGen
+  Core
+  IRReader
+  MC
+  ScalarOpts
+  SelectionDAG
+  Support
+  )
+
+# Support plugins.
+set(LLVM_NO_DEAD_STRIP 1)
+
 add_llvm_tool(llc
   llc.cpp
   )
-
-add_llvm_link_components(llc all)
-target_link_libraries(llc LLVMBitReader LLVMAsmParser)
+export_executable_symbols(llc)