[llvm-commits] CVS: llvm/lib/Target/ARM/ARMTargetMachine.cpp
Evan Cheng
evan.cheng at apple.com
Mon Jan 22 13:24:29 PST 2007
Changes in directory llvm/lib/Target/ARM:
ARMTargetMachine.cpp updated: 1.16 -> 1.17
---
Log message:
Double and Long preferred alignment is 4 for Darwin, 8 for Linux.
---
Diffs of the changes: (+5 -1)
ARMTargetMachine.cpp | 6 +++++-
1 files changed, 5 insertions(+), 1 deletion(-)
Index: llvm/lib/Target/ARM/ARMTargetMachine.cpp
diff -u llvm/lib/Target/ARM/ARMTargetMachine.cpp:1.16 llvm/lib/Target/ARM/ARMTargetMachine.cpp:1.17
--- llvm/lib/Target/ARM/ARMTargetMachine.cpp:1.16 Fri Jan 19 20:09:25 2007
+++ llvm/lib/Target/ARM/ARMTargetMachine.cpp Mon Jan 22 15:24:13 2007
@@ -33,7 +33,11 @@
/// TargetMachine ctor - Create an ILP32 architecture model
///
ARMTargetMachine::ARMTargetMachine(const Module &M, const std::string &FS)
- : Subtarget(M, FS), DataLayout("e-p:32:32-d:32"), InstrInfo(Subtarget),
+ : Subtarget(M, FS),
+ DataLayout(Subtarget.isTargetDarwin() ?
+ std::string("e-p:32:32-d:32-l:32") :
+ std::string("e-p:32:32-d:64-l:64")),
+ InstrInfo(Subtarget),
FrameInfo(Subtarget) {}
unsigned ARMTargetMachine::getModuleMatchQuality(const Module &M) {
More information about the llvm-commits
mailing list