From: Evan Cheng Date: Mon, 22 Jan 2007 21:24:13 +0000 (+0000) Subject: Double and Long preferred alignment is 4 for Darwin, 8 for Linux. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d44ecd86e749cf15f737fa9ebaf51875b762ab11;p=oota-llvm.git 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 --- diff --git a/lib/Target/ARM/ARMTargetMachine.cpp b/lib/Target/ARM/ARMTargetMachine.cpp index 4ad3cab5998..492603fe7f0 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) {