[llvm] r243121 - Update for r243115 which changed the DataLayout API on TargetMachine but

Rafael EspĂ­ndola rafael.espindola at gmail.com
Mon Aug 3 13:17:29 PDT 2015


Thanks!

On 24 July 2015 at 13:23, Chandler Carruth <chandlerc at gmail.com> wrote:
> 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()));
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits



More information about the llvm-commits mailing list