diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-01-22 21:24:13 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-01-22 21:24:13 +0000 |
commit | d44ecd86e749cf15f737fa9ebaf51875b762ab11 (patch) | |
tree | cbfc8ad7159077dbd33ccecd6b119426075626b1 /lib/Target/ARM/ARMTargetMachine.cpp | |
parent | 2576f136458bda873208399e4c8a5e21ee14b362 (diff) |
Double and Long preferred alignment is 4 for Darwin, 8 for Linux.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33440 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMTargetMachine.cpp')
-rw-r--r-- | lib/Target/ARM/ARMTargetMachine.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMTargetMachine.cpp b/lib/Target/ARM/ARMTargetMachine.cpp index 4ad3cab599..492603fe7f 100644 --- a/lib/Target/ARM/ARMTargetMachine.cpp +++ b/lib/Target/ARM/ARMTargetMachine.cpp @@ -33,7 +33,11 @@ namespace { /// 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) { |