projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac4803b
)
Update for r243115 which changed the DataLayout API on TargetMachine but
author
Chandler Carruth
<chandlerc@gmail.com>
Fri, 24 Jul 2015 17:23:09 +0000
(17:23 +0000)
committer
Chandler Carruth
<chandlerc@gmail.com>
Fri, 24 Jul 2015 17:23:09 +0000
(17:23 +0000)
didn't update the gold-plugin.
llvm-svn: 243121
llvm/tools/gold/gold-plugin.cpp
patch
|
blob
|
history
diff --git
a/llvm/tools/gold/gold-plugin.cpp
b/llvm/tools/gold/gold-plugin.cpp
index
68c9d1a
..
18cd621
100644
(file)
--- 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()));