ARM AAPCS abi (Linux, etc.) requires 8-byte double / long alignment; Mac

requires 4-bytes alignment.

llvm-svn: 33448
This commit is contained in:
Evan Cheng 2007-01-22 23:13:01 +00:00
parent c76a2c6c18
commit 25584afca7

View File

@ -35,8 +35,8 @@ namespace {
ARMTargetMachine::ARMTargetMachine(const Module &M, const std::string &FS)
: 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")),
std::string("e-p:32:32-d:32:32-l:32:32") :
std::string("e-p:32:32-d:32:64-l:32:64")),
InstrInfo(Subtarget),
FrameInfo(Subtarget) {}