mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-06 12:16:59 +00:00
Provide ABI-correct stack alignment
llvm-svn: 50154
This commit is contained in:
parent
7e6850d1a1
commit
11851230a9
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user