[llvm] r243121 - Update for r243115 which changed the DataLayout API on TargetMachine but
Chandler Carruth
chandlerc at gmail.com
Fri Jul 24 10:23:10 PDT 2015
Author: chandlerc
Date: Fri Jul 24 12:23:09 2015
New Revision: 243121
URL: http://llvm.org/viewvc/llvm-project?rev=243121&view=rev
Log:
Update for r243115 which changed the DataLayout API on TargetMachine but
didn't update the gold-plugin.
Modified:
llvm/trunk/tools/gold/gold-plugin.cpp
Modified: llvm/trunk/tools/gold/gold-plugin.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/gold/gold-plugin.cpp?rev=243121&r1=243120&r2=243121&view=diff
==============================================================================
--- llvm/trunk/tools/gold/gold-plugin.cpp (original)
+++ llvm/trunk/tools/gold/gold-plugin.cpp Fri Jul 24 12:23:09 2015
@@ -716,8 +716,7 @@ getModuleForFile(LLVMContext &Context, c
}
static void runLTOPasses(Module &M, TargetMachine &TM) {
- if (const DataLayout *DL = TM.getDataLayout())
- M.setDataLayout(*DL);
+ M.setDataLayout(TM.createDataLayout());
legacy::PassManager passes;
passes.add(createTargetTransformInfoWrapperPass(TM.getTargetIRAnalysis()));
More information about the llvm-commits
mailing list