diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2015-07-24 17:23:09 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2015-07-24 17:23:09 +0000 |
| commit | df47bb9a06f62d4795e57e63797c811ecdbf400a (patch) | |
| tree | c75ef4811d80020eaba69782cff4f7f5498a6ef0 /llvm/tools | |
| parent | ac4803bb45de2880ce0b0a0bcbdd2ed8055bd27c (diff) | |
| download | bcm5719-llvm-df47bb9a06f62d4795e57e63797c811ecdbf400a.tar.gz bcm5719-llvm-df47bb9a06f62d4795e57e63797c811ecdbf400a.zip | |
Update for r243115 which changed the DataLayout API on TargetMachine but
didn't update the gold-plugin.
llvm-svn: 243121
Diffstat (limited to 'llvm/tools')
| -rw-r--r-- | llvm/tools/gold/gold-plugin.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp index 68c9d1a6f6e..18cd621317e 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())); |

