Calling _chkstk is required on ELF as well as COFF on Windows.
authorYaron Keren <yaron.keren@gmail.com>
Wed, 23 Oct 2013 19:40:07 +0000 (19:40 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Wed, 23 Oct 2013 19:40:07 +0000 (19:40 +0000)
commit1e0437804c084dabda8894508f5867fdfb4df915
treeb1b01fd2d11022ec7dcd963db6f6641110c2f3da
parent7377cff9e7641c75678fd5c80472942fd7ef869a
Calling _chkstk is required on ELF as well as COFF on Windows.
Without _chkstk functions requiring large stack crash in
initialization code. Previous code tested for COFF format but
not Mach-O and this patch modifies the code to test for Windows.

Credits to Andrew MacPherson.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193263 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86FrameLowering.cpp
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86Subtarget.h