]> granicus.if.org Git - clang/commitdiff
driver: add link dependency on CodeGen
authorAlp Toker <alp@nuanti.com>
Tue, 1 Jul 2014 02:42:02 +0000 (02:42 +0000)
committerAlp Toker <alp@nuanti.com>
Tue, 1 Jul 2014 02:42:02 +0000 (02:42 +0000)
Fix the build when no targets are enabled. This dependency is incurred by two
unfortunate entries in LinkAllPasses.h included from cc1_main.cpp:

  llvm::createJumpInstrTablesPass();
  llvm::createCodeGenPreparePass();

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212084 91177308-0d34-0410-b5e6-96231b3b80d8

tools/driver/CMakeLists.txt

index 67d2115b84b3f80617777bf8c54ba8626da6cbfc..910732ece6cb19bf2ef9cb0884431981f4832f75 100644 (file)
@@ -1,6 +1,7 @@
 set( LLVM_LINK_COMPONENTS
   ${LLVM_TARGETS_TO_BUILD}
   Analysis
+  CodeGen
   Core
   IPA
   IPO