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 | 4efbbc963f94341cb24fee90d77cc9f7e0226898 (patch) | |
tree | 758bebf5876f7158e57b9bde87ce206b8f30dd0e /llvm/lib/Target/X86/X86Subtarget.h | |
parent | a50e3919b150df88f66d45f9173a5bec1bd22d94 (diff) | |
download | bcm5719-llvm-4efbbc963f94341cb24fee90d77cc9f7e0226898.tar.gz bcm5719-llvm-4efbbc963f94341cb24fee90d77cc9f7e0226898.zip |
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
llvm-svn: 32833
Diffstat (limited to 'llvm/lib/Target/X86/X86Subtarget.h')
-rw-r--r-- | llvm/lib/Target/X86/X86Subtarget.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86Subtarget.h b/llvm/lib/Target/X86/X86Subtarget.h index ba43e385dae..863e1af9314 100644 --- a/llvm/lib/Target/X86/X86Subtarget.h +++ b/llvm/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 |