diff options
author | Cameron Zwarich <zwarich@apple.com> | 2011-07-11 22:19:51 +0000 |
---|---|---|
committer | Cameron Zwarich <zwarich@apple.com> | 2011-07-11 22:19:51 +0000 |
commit | bf843e6974007a9a125453a61a2c4a64ee3a6186 (patch) | |
tree | 61684ccdeb5191e1b486e0b1d9798f4cd3d777a3 /tools/lto | |
parent | af0a2e6730ffb59405352269e1500b6e83e42d6a (diff) | |
download | external_llvm-bf843e6974007a9a125453a61a2c4a64ee3a6186.zip external_llvm-bf843e6974007a9a125453a61a2c4a64ee3a6186.tar.gz external_llvm-bf843e6974007a9a125453a61a2c4a64ee3a6186.tar.bz2 |
Fix LTO after the recent MC subtarget refactoring.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134930 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto')
-rw-r--r-- | tools/lto/LTOCodeGenerator.cpp | 1 | ||||
-rw-r--r-- | tools/lto/LTOModule.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tools/lto/LTOCodeGenerator.cpp b/tools/lto/LTOCodeGenerator.cpp index 630a995..82b226b 100644 --- a/tools/lto/LTOCodeGenerator.cpp +++ b/tools/lto/LTOCodeGenerator.cpp @@ -73,6 +73,7 @@ LTOCodeGenerator::LTOCodeGenerator() _nativeObjectFile(NULL) { InitializeAllTargets(); + InitializeAllMCSubtargetInfos(); InitializeAllAsmPrinters(); } diff --git a/tools/lto/LTOModule.cpp b/tools/lto/LTOModule.cpp index 83fdbbe..06305ea 100644 --- a/tools/lto/LTOModule.cpp +++ b/tools/lto/LTOModule.cpp @@ -135,6 +135,7 @@ LTOModule *LTOModule::makeLTOModule(MemoryBuffer *buffer, static bool Initialized = false; if (!Initialized) { InitializeAllTargets(); + InitializeAllMCSubtargetInfos(); InitializeAllAsmParsers(); Initialized = true; } |