[llvm] r189436 - X86Subtarget.h: Recognize x86_64-cygwin.

NAKAMURA Takumi geek4civic at gmail.com
Tue Aug 27 20:04:03 PDT 2013


Author: chapuni
Date: Tue Aug 27 22:04:02 2013
New Revision: 189436

URL: http://llvm.org/viewvc/llvm-project?rev=189436&view=rev
Log:
X86Subtarget.h: Recognize x86_64-cygwin.

In the LLVM side, x86_64-cygwin is almost as same as x86_64-mingw32.

Modified:
    llvm/trunk/lib/Target/X86/X86Subtarget.h

Modified: llvm/trunk/lib/Target/X86/X86Subtarget.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86Subtarget.h?rev=189436&r1=189435&r2=189436&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86Subtarget.h (original)
+++ llvm/trunk/lib/Target/X86/X86Subtarget.h Tue Aug 27 22:04:02 2013
@@ -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; }





More information about the llvm-commits mailing list