diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-10-23 21:45:09 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-10-23 21:45:09 +0000 |
commit | bca3ab0905029a358125df301e3878294e59d49c (patch) | |
tree | 48976fa51bc79ca323a8d72c8ac5f8864228d6c4 /llvm/lib/Target/X86/X86ISelLowering.cpp | |
parent | c85ed7e4a2a1f42a07e4940f38d7f365b662a1af (diff) | |
download | bcm5719-llvm-bca3ab0905029a358125df301e3878294e59d49c.tar.gz bcm5719-llvm-bca3ab0905029a358125df301e3878294e59d49c.zip |
Revert "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."
This reverts commit r193263.
It is causing CodeGen/X86/mingw-alloca.ll to fail.
llvm-svn: 193275
Diffstat (limited to 'llvm/lib/Target/X86/X86ISelLowering.cpp')
-rw-r--r-- | llvm/lib/Target/X86/X86ISelLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index 694623e1754..cc409fb3c51 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp @@ -631,7 +631,7 @@ void X86TargetLowering::resetOperationActions() { setOperationAction(ISD::STACKSAVE, MVT::Other, Expand); setOperationAction(ISD::STACKRESTORE, MVT::Other, Expand); - if (Subtarget->isTargetWindows()) + if (Subtarget->isTargetCOFF() && !Subtarget->isTargetEnvMacho()) setOperationAction(ISD::DYNAMIC_STACKALLOC, Subtarget->is64Bit() ? MVT::i64 : MVT::i32, Custom); else if (TM.Options.EnableSegmentedStacks) |