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) { _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits