From: Chandler Carruth Date: Fri, 24 Jul 2015 17:23:09 +0000 (+0000) Subject: Update for r243115 which changed the DataLayout API on TargetMachine but X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=df47bb9a06f62d4795e57e63797c811ecdbf400a;p=platform%2Fupstream%2Fllvm.git Update for r243115 which changed the DataLayout API on TargetMachine but didn't update the gold-plugin. llvm-svn: 243121 --- diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp index 68c9d1a..18cd621 100644 --- a/llvm/tools/gold/gold-plugin.cpp +++ b/llvm/tools/gold/gold-plugin.cpp @@ -716,8 +716,7 @@ getModuleForFile(LLVMContext &Context, claimed_file &F, } 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()));