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
This commit is contained in:
Evan Cheng 2007-01-22 21:24:13 +00:00
parent 2576f13645
commit d44ecd86e7

View File

@ -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) {