aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lto
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-06-17 16:42:19 +0000
committerChris Lattner <sabre@nondot.org>2009-06-17 16:42:19 +0000
commit41788085c89e9fc8fdd0b82b421cabbc1aa0ea59 (patch)
treede27d586a178b91b9052479d02f613a7cca983bf /tools/lto
parent2e736d8e784e0e70531f2b4bdffd87d8776699d9 (diff)
downloadexternal_llvm-41788085c89e9fc8fdd0b82b421cabbc1aa0ea59.zip
external_llvm-41788085c89e9fc8fdd0b82b421cabbc1aa0ea59.tar.gz
external_llvm-41788085c89e9fc8fdd0b82b421cabbc1aa0ea59.tar.bz2
switch to using llvm/Target/TargetSelect.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73611 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto')
-rw-r--r--tools/lto/LTOCodeGenerator.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/lto/LTOCodeGenerator.cpp b/tools/lto/LTOCodeGenerator.cpp
index ed23b9e..11e0e55 100644
--- a/tools/lto/LTOCodeGenerator.cpp
+++ b/tools/lto/LTOCodeGenerator.cpp
@@ -18,8 +18,6 @@
#include "llvm/Constants.h"
#include "llvm/DerivedTypes.h"
-#include "llvm/InitializeAllTargets.h"
-#include "llvm/InitializeAllAsmPrinters.h"
#include "llvm/Linker.h"
#include "llvm/Module.h"
#include "llvm/ModuleProvider.h"
@@ -39,10 +37,11 @@
#include "llvm/System/Signals.h"
#include "llvm/Target/SubtargetFeature.h"
#include "llvm/Target/TargetOptions.h"
+#include "llvm/Target/TargetAsmInfo.h"
#include "llvm/Target/TargetData.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetMachineRegistry.h"
-#include "llvm/Target/TargetAsmInfo.h"
+#include "llvm/Target/TargetSelect.h"
#include "llvm/Transforms/IPO.h"
#include "llvm/Transforms/Scalar.h"
#include "llvm/Config/config.h"
@@ -76,6 +75,8 @@ LTOCodeGenerator::LTOCodeGenerator()
_codeModel(LTO_CODEGEN_PIC_MODEL_DYNAMIC),
_nativeObjectFile(NULL), _gccPath(NULL), _assemblerPath(NULL)
{
+ InitializeAllTargets();
+ InitializeAllAsmPrinters();
}