diff options
author | Yaron Keren <yaron.keren@gmail.com> | 2013-10-23 19:40:07 +0000 |
---|---|---|
committer | Yaron Keren <yaron.keren@gmail.com> | 2013-10-23 19:40:07 +0000 |
commit | 1e0437804c084dabda8894508f5867fdfb4df915 (patch) | |
tree | b1b01fd2d11022ec7dcd963db6f6641110c2f3da /lib/Target/X86/X86Subtarget.h | |
parent | 7377cff9e7641c75678fd5c80472942fd7ef869a (diff) | |
download | external_llvm-1e0437804c084dabda8894508f5867fdfb4df915.zip external_llvm-1e0437804c084dabda8894508f5867fdfb4df915.tar.gz external_llvm-1e0437804c084dabda8894508f5867fdfb4df915.tar.bz2 |
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
Diffstat (limited to 'lib/Target/X86/X86Subtarget.h')
-rw-r--r-- | lib/Target/X86/X86Subtarget.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/X86/X86Subtarget.h b/lib/Target/X86/X86Subtarget.h index fb357c4..dd8c081 100644 --- a/lib/Target/X86/X86Subtarget.h +++ b/lib/Target/X86/X86Subtarget.h @@ -333,6 +333,8 @@ public: } bool isTargetEnvMacho() const { return TargetTriple.isEnvironmentMachO(); } + bool isOSWindows() const { return TargetTriple.isOSWindows(); } + bool isTargetWin64() const { return In64BitMode && TargetTriple.isOSWindows(); } |