mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
The stack should be 16 byte aligned on 32 bit solaris. Patch by Yuri.
llvm-svn: 126130
This commit is contained in:
parent
17a277da6d
commit
77c058dc70
@ -342,9 +342,9 @@ X86Subtarget::X86Subtarget(const std::string &TT, const std::string &FS,
|
||||
assert((!Is64Bit || HasX86_64) &&
|
||||
"64-bit code requested on a subtarget that doesn't support it!");
|
||||
|
||||
// Stack alignment is 16 bytes on Darwin and Linux (both 32 and 64 bit) and
|
||||
// for all 64-bit targets.
|
||||
if (isTargetDarwin() || isTargetLinux() || Is64Bit)
|
||||
// Stack alignment is 16 bytes on Darwin, Linux and Solaris (both 32 and 64
|
||||
// bit) and for all 64-bit targets.
|
||||
if (isTargetDarwin() || isTargetLinux() || isTargetSolaris() || Is64Bit)
|
||||
stackAlignment = 16;
|
||||
|
||||
if (StackAlignment)
|
||||
|
@ -166,6 +166,7 @@ public:
|
||||
bool hasVectorUAMem() const { return HasVectorUAMem; }
|
||||
|
||||
bool isTargetDarwin() const { return TargetTriple.getOS() == Triple::Darwin; }
|
||||
bool isTargetSolaris() const { return TargetTriple.getOS() == Triple::Solaris; }
|
||||
|
||||
// ELF is a reasonably sane default and the only other X86 targets we
|
||||
// support are Darwin and Windows. Just use "not those".
|
||||
|
Loading…
Reference in New Issue
Block a user