diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2007-01-03 11:43:14 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2007-01-03 11:43:14 +0000 |
commit | 317848f4a11f7fe55afdd6d90ded8444069b56fb (patch) | |
tree | 683797a4e9669398c190804b558a835c96439fb7 /lib/Target/X86/X86Subtarget.h | |
parent | 7f7fdcca8fabccb21967f0b12d68009ff6247acd (diff) | |
download | external_llvm-317848f4a11f7fe55afdd6d90ded8444069b56fb.zip external_llvm-317848f4a11f7fe55afdd6d90ded8444069b56fb.tar.gz external_llvm-317848f4a11f7fe55afdd6d90ded8444069b56fb.tar.bz2 |
Really big cleanup.
- New target type "mingw" was introduced
- Same things for both mingw & cygwin are marked as "cygming" (as in
gcc)
- .lcomm is supported here, so allow LLVM to use it
- Correctly use underscored versions of setjmp & _longjmp for both mingw
& cygwin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32833 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86Subtarget.h')
-rw-r--r-- | lib/Target/X86/X86Subtarget.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Target/X86/X86Subtarget.h b/lib/Target/X86/X86Subtarget.h index ba43e38..863e1af 100644 --- a/lib/Target/X86/X86Subtarget.h +++ b/lib/Target/X86/X86Subtarget.h @@ -64,7 +64,7 @@ private: public: enum { - isELF, isCygwin, isDarwin, isWindows + isELF, isCygwin, isDarwin, isWindows, isMingw } TargetType; /// This constructor initializes the data members to match that @@ -106,6 +106,9 @@ public: bool isTargetDarwin() const { return TargetType == isDarwin; } bool isTargetELF() const { return TargetType == isELF; } bool isTargetWindows() const { return TargetType == isWindows; } + bool isTargetMingw() const { return TargetType == isMingw; } + bool isTargetCygMing() const { return (TargetType == isMingw || + TargetType == isCygwin); } bool isTargetCygwin() const { return TargetType == isCygwin; } /// True if accessing the GV requires an extra load. For Windows, dllimported |