]> granicus.if.org Git - clang/commitdiff
link in targets
authorChris Lattner <sabre@nondot.org>
Wed, 17 Jun 2009 17:25:50 +0000 (17:25 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 17 Jun 2009 17:25:50 +0000 (17:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73619 91177308-0d34-0410-b5e6-96231b3b80d8

tools/clang-cc/clang-cc.cpp

index 04b871c4e156d7e0e65f9cc327c9e063d968c017..1f1ae8588a48786296e0494015cf36e4fd45f907 100644 (file)
@@ -67,6 +67,7 @@
 #include "llvm/System/Process.h"
 #include "llvm/System/Program.h"
 #include "llvm/System/Signals.h"
+#include "llvm/Target/TargetSelect.h"
 #include <cstdlib>
 #if HAVE_SYS_TYPES_H
 #  include <sys/types.h>
@@ -2142,6 +2143,9 @@ int main(int argc, char **argv) {
   llvm::cl::ParseCommandLineOptions(argc, argv,
                               "LLVM 'Clang' Compiler: http://clang.llvm.org\n");
 
+  llvm::InitializeAllTargets();
+  llvm::InitializeAllAsmPrinters();
+  
   if (TimeReport)
     ClangFrontendTimer = new llvm::Timer("Clang front-end time");