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 | 890fe888be0e19ce675bb2cd7c127ece88d8064d (patch) | |
tree | 00229f2f9de140e9d436e9520916265a0414b178 /lib/Target/X86/X86Subtarget.cpp | |
parent | 9bbbea568c6a48a5be6a5f7c1449c164fed55e70 (diff) |
Provide ABI-correct stack alignment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50154 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86Subtarget.cpp')
-rw-r--r-- | lib/Target/X86/X86Subtarget.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/Target/X86/X86Subtarget.cpp b/lib/Target/X86/X86Subtarget.cpp index 610bf1da43..71b5cb31f5 100644 --- a/lib/Target/X86/X86Subtarget.cpp +++ b/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) |