(this is a corrected patch)
authorYaron Keren <yaron.keren@gmail.com>
Wed, 23 Oct 2013 23:37:01 +0000 (23:37 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Wed, 23 Oct 2013 23:37:01 +0000 (23:37 +0000)
commitfaf1415c4fa88b6233bca488b8ac3bb8e6a73c72
tree36688c4d8336ded3df6f71d0d1a2a0328b1d5fd1
parentbe87b69a5f2f0b66939cef4d107a2cb8e4f4f4dc
(this is a corrected patch)

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 OS (both Windows target and MingW target)
but not Mach-O object format: Looks like macho environment was used to
build some EFI code.

Credits to Andrew MacPherson.

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