mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-23 15:29:51 +00:00
Stack alignment is 16 bytes on FreeBSD/i386 too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126226 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a04663ecb2
commit
4c3ab58c47
@ -342,9 +342,10 @@ 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, Linux and Solaris (both 32 and 64
|
||||
// bit) and for all 64-bit targets.
|
||||
if (isTargetDarwin() || isTargetLinux() || isTargetSolaris() || Is64Bit)
|
||||
// Stack alignment is 16 bytes on Darwin, FreeBSD, Linux and Solaris (both
|
||||
// 32 and 64 bit) and for all 64-bit targets.
|
||||
if (isTargetDarwin() || isTargetFreeBSD() || 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 isTargetFreeBSD() const { return TargetTriple.getOS() == Triple::FreeBSD; }
|
||||
bool isTargetSolaris() const { return TargetTriple.getOS() == Triple::Solaris; }
|
||||
|
||||
// ELF is a reasonably sane default and the only other X86 targets we
|
||||
|
Loading…
Reference in New Issue
Block a user