[llvm-commits] [llvm] r78797 - in /llvm/trunk: include/llvm/ADT/Triple.h lib/Support/Triple.cpp
Chris Lattner
sabre at nondot.org
Tue Aug 11 23:32:11 PDT 2009
Author: lattner
Date: Wed Aug 12 01:32:10 2009
New Revision: 78797
URL: http://llvm.org/viewvc/llvm-project?rev=78797&view=rev
Log:
add support for mingw64 target triples.
Modified:
llvm/trunk/include/llvm/ADT/Triple.h
llvm/trunk/lib/Support/Triple.cpp
Modified: llvm/trunk/include/llvm/ADT/Triple.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/Triple.h?rev=78797&r1=78796&r2=78797&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/Triple.h (original)
+++ llvm/trunk/include/llvm/ADT/Triple.h Wed Aug 12 01:32:10 2009
@@ -70,6 +70,7 @@
FreeBSD,
Linux,
MinGW32,
+ MinGW64,
NetBSD,
OpenBSD,
Win32
Modified: llvm/trunk/lib/Support/Triple.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Triple.cpp?rev=78797&r1=78796&r2=78797&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Triple.cpp (original)
+++ llvm/trunk/lib/Support/Triple.cpp Wed Aug 12 01:32:10 2009
@@ -63,6 +63,7 @@
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 @@
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"))
More information about the llvm-commits
mailing list