diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-04-23 18:16:16 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-04-23 18:16:16 +0000 |
commit | a7495260ee4916197fd51674d335dba620a07a1c (patch) | |
tree | 67751b2fc8d723b737af4d5e9234e564dd16ae9e /llvm/lib/Target/X86/X86Subtarget.cpp | |
parent | 8843487e16e4d91b56dbfe8b94c708e77bc407ee (diff) | |
download | bcm5719-llvm-a7495260ee4916197fd51674d335dba620a07a1c.tar.gz bcm5719-llvm-a7495260ee4916197fd51674d335dba620a07a1c.zip |
Provide ABI-correct stack alignment
llvm-svn: 50154
Diffstat (limited to 'llvm/lib/Target/X86/X86Subtarget.cpp')
-rw-r--r-- | llvm/lib/Target/X86/X86Subtarget.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/lib/Target/X86/X86Subtarget.cpp b/llvm/lib/Target/X86/X86Subtarget.cpp index 610bf1da432..71b5cb31f57 100644 --- a/llvm/lib/Target/X86/X86Subtarget.cpp +++ b/llvm/lib/Target/X86/X86Subtarget.cpp @@ -315,11 +315,9 @@ X86Subtarget::X86Subtarget(const Module &M, const std::string &FS, bool is64Bit) ? X86Subtarget::Intel : X86Subtarget::ATT; } - if (TargetType == isDarwin || - TargetType == isCygwin || - TargetType == isMingw || - TargetType == isWindows || - (TargetType == isELF && Is64Bit)) + // Stack alignment is 16 bytes on Darwin (both 32 and 64 bit) and for all 64 + // bit targets. + if (TargetType == isDarwin || Is64Bit) stackAlignment = 16; if (StackAlignment) |