projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Revert the last couple of patches here and go back to something
[oota-llvm.git]
/
lib
/
Target
/
TargetMachineC.cpp
diff --git
a/lib/Target/TargetMachineC.cpp
b/lib/Target/TargetMachineC.cpp
index e939b88e0a06f1fd9a3136dbd1bffff89c952d82..a2829d4c027fd9969a87518866118763750ec426 100644
(file)
--- a/
lib/Target/TargetMachineC.cpp
+++ b/
lib/Target/TargetMachineC.cpp
@@
-212,7
+212,8
@@
static LLVMBool LLVMTargetMachineEmit(LLVMTargetMachineRef T, LLVMModuleRef M,
*ErrorMessage = strdup(error.c_str());
return true;
}
- pass.add(new DataLayoutPass(*td));
+ Mod->setDataLayout(td);
+ pass.add(new DataLayoutPass(Mod));
TargetMachine::CodeGenFileType ft;
switch (codegen) {