Make x86 long double alignment 32 for everything but

Darwin (which makes size within a struct==96)

llvm-svn: 40796
This commit is contained in:
Dale Johannesen 2007-08-03 22:46:15 +00:00
parent 0104731e62
commit b0c7585f2d
1 changed files with 3 additions and 1 deletions

View File

@ -116,7 +116,9 @@ X86TargetMachine::X86TargetMachine(const Module &M, const std::string &FS,
: Subtarget(M, FS, is64Bit),
DataLayout(Subtarget.is64Bit() ?
std::string("e-p:64:64-f64:32:64-i64:32:64-f80:128:128") :
std::string("e-p:32:32-f64:32:64-i64:32:64-f80:128:128")),
Subtarget.isTargetDarwin() ?
std::string("e-p:32:32-f64:32:64-i64:32:64-f80:128:128") :
std::string("e-p:32:32-f64:32:64-i64:32:64-f80:32:32")),
FrameInfo(TargetFrameInfo::StackGrowsDown,
Subtarget.getStackAlignment(), Subtarget.is64Bit() ? -8 : -4),
InstrInfo(*this), JITInfo(*this), TLInfo(*this) {