From 2fe119410f3d40b09a2a1b850f1ad231ea9773df Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 17 Jun 2009 17:25:50 +0000 Subject: [PATCH] link in targets git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73619 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/clang-cc/clang-cc.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/clang-cc/clang-cc.cpp b/tools/clang-cc/clang-cc.cpp index 04b871c4e1..1f1ae8588a 100644 --- a/tools/clang-cc/clang-cc.cpp +++ b/tools/clang-cc/clang-cc.cpp @@ -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 #if HAVE_SYS_TYPES_H # include @@ -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"); -- 2.40.0