projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "Remove access to the DataLayout in the TargetMachine"
[oota-llvm.git]
/
lib
/
LTO
/
LTOModule.cpp
diff --git
a/lib/LTO/LTOModule.cpp
b/lib/LTO/LTOModule.cpp
index ec8991ed236531e5dfd3b2f641d904a2fd2f8c38..53ed4175f8e35463e9826858ff84efdf5046a6d8 100644
(file)
--- a/
lib/LTO/LTOModule.cpp
+++ b/
lib/LTO/LTOModule.cpp
@@
-232,7
+232,7
@@
LTOModule *LTOModule::makeLTOModule(MemoryBufferRef Buffer,
TargetMachine *target = march->createTargetMachine(TripleStr, CPU, FeatureStr,
options);
TargetMachine *target = march->createTargetMachine(TripleStr, CPU, FeatureStr,
options);
- M->setDataLayout(
target->create
DataLayout());
+ M->setDataLayout(
*target->get
DataLayout());
std::unique_ptr<object::IRObjectFile> IRObj(
new object::IRObjectFile(Buffer, std::move(M)));
std::unique_ptr<object::IRObjectFile> IRObj(
new object::IRObjectFile(Buffer, std::move(M)));