1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

Double and Long preferred alignment is 4 for Darwin, 8 for Linux.

llvm-svn: 33440
This commit is contained in:
Evan Cheng 2007-01-22 21:24:13 +00:00
parent 30ef170ddf
commit b55dabdc80

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