X86Subtarget.h: Recognize x86_64-cygwin.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 28 Aug 2013 03:04:02 +0000 (03:04 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 28 Aug 2013 03:04:02 +0000 (03:04 +0000)
In the LLVM side, x86_64-cygwin is almost as same as x86_64-mingw32.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189436 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86Subtarget.h

index 0c1e999869915b409a0f5dc21b5ee706f7f10db2..14048cfe54e588220c68dc2482362da543c6db09 100644 (file)
@@ -328,14 +328,11 @@ public:
   bool isTargetEnvMacho() const { return TargetTriple.isEnvironmentMachO(); }
 
   bool isTargetWin64() const {
-    // FIXME: x86_64-cygwin has not been released yet.
     return In64BitMode && TargetTriple.isOSWindows();
   }
 
   bool isTargetWin32() const {
-    // FIXME: Cygwin is included for isTargetWin64 -- should it be included
-    // here too?
-    return !In64BitMode && (isTargetMingw() || isTargetWindows());
+    return !In64BitMode && (isTargetCygMing() || isTargetWindows());
   }
 
   bool isPICStyleSet() const { return PICStyle != PICStyles::None; }