[llvm-commits] [llvm] r134930 - in /llvm/trunk/tools/lto: LTOCodeGenerator.cpp LTOModule.cpp
Cameron Zwarich
zwarich at apple.com
Mon Jul 11 15:19:52 PDT 2011
Author: zwarich
Date: Mon Jul 11 17:19:51 2011
New Revision: 134930
URL: http://llvm.org/viewvc/llvm-project?rev=134930&view=rev
Log:
Fix LTO after the recent MC subtarget refactoring.
Modified:
llvm/trunk/tools/lto/LTOCodeGenerator.cpp
llvm/trunk/tools/lto/LTOModule.cpp
Modified: llvm/trunk/tools/lto/LTOCodeGenerator.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lto/LTOCodeGenerator.cpp?rev=134930&r1=134929&r2=134930&view=diff
==============================================================================
--- llvm/trunk/tools/lto/LTOCodeGenerator.cpp (original)
+++ llvm/trunk/tools/lto/LTOCodeGenerator.cpp Mon Jul 11 17:19:51 2011
@@ -73,6 +73,7 @@
_nativeObjectFile(NULL)
{
InitializeAllTargets();
+ InitializeAllMCSubtargetInfos();
InitializeAllAsmPrinters();
}
Modified: llvm/trunk/tools/lto/LTOModule.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lto/LTOModule.cpp?rev=134930&r1=134929&r2=134930&view=diff
==============================================================================
--- llvm/trunk/tools/lto/LTOModule.cpp (original)
+++ llvm/trunk/tools/lto/LTOModule.cpp Mon Jul 11 17:19:51 2011
@@ -135,6 +135,7 @@
static bool Initialized = false;
if (!Initialized) {
InitializeAllTargets();
+ InitializeAllMCSubtargetInfos();
InitializeAllAsmParsers();
Initialized = true;
}
More information about the llvm-commits
mailing list