add support for mingw64 target triples.
authorChris Lattner <sabre@nondot.org>
Wed, 12 Aug 2009 06:32:10 +0000 (06:32 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 12 Aug 2009 06:32:10 +0000 (06:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78797 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/Triple.h
lib/Support/Triple.cpp

index 47f8b6e9416d7e948d5c8291c3a2d0a6d36a1169..2ea8f20bad5ad7bc07f07448b44c593eca7995fe 100644 (file)
@@ -70,6 +70,7 @@ public:
     FreeBSD,
     Linux,
     MinGW32,
+    MinGW64,
     NetBSD,
     OpenBSD,
     Win32
index 7c028f4cf1b10ee9970544dd544d702ad9111409..a81fb5b58d611508a625547befd38c9c9943e3b4 100644 (file)
@@ -63,6 +63,7 @@ const char *Triple::getOSTypeName(OSType Kind) {
   case FreeBSD: return "freebsd";
   case Linux: return "linux";
   case MinGW32: return "mingw32";
+  case MinGW64: return "mingw64";
   case NetBSD: return "netbsd";
   case OpenBSD: return "openbsd";
   case Win32: return "win32";
@@ -171,6 +172,8 @@ void Triple::Parse() const {
     OS = Linux;
   else if (OSName.startswith("mingw32"))
     OS = MinGW32;
+  else if (OSName.startswith("mingw64"))
+    OS = MinGW64;
   else if (OSName.startswith("netbsd"))
     OS = NetBSD;
   else if (OSName.startswith("openbsd"))