mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Provide ABI-correct stack alignment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50154 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -315,11 +315,9 @@ X86Subtarget::X86Subtarget(const Module &M, const std::string &FS, bool is64Bit)
|
|||||||
? X86Subtarget::Intel : X86Subtarget::ATT;
|
? X86Subtarget::Intel : X86Subtarget::ATT;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (TargetType == isDarwin ||
|
// Stack alignment is 16 bytes on Darwin (both 32 and 64 bit) and for all 64
|
||||||
TargetType == isCygwin ||
|
// bit targets.
|
||||||
TargetType == isMingw ||
|
if (TargetType == isDarwin || Is64Bit)
|
||||||
TargetType == isWindows ||
|
|
||||||
(TargetType == isELF && Is64Bit))
|
|
||||||
stackAlignment = 16;
|
stackAlignment = 16;
|
||||||
|
|
||||||
if (StackAlignment)
|
if (StackAlignment)
|
||||||
|
Reference in New Issue
Block a user