16-byte stack alignment for X86-64 ELF. Patch by Dan Gohman.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32004 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2006-11-29 02:00:40 +00:00
parent f3e486e069
commit b4809b2b8f

View File

@ -255,6 +255,8 @@ X86Subtarget::X86Subtarget(const Module &M, const std::string &FS, bool is64Bit)
}
}
if (TargetType == isDarwin || TargetType == isCygwin)
if (TargetType == isDarwin ||
TargetType == isCygwin ||
(TargetType == isELF && Is64Bit))
stackAlignment = 16;
}