summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-12 06:32:10 +0000
committerChris Lattner <sabre@nondot.org>2009-08-12 06:32:10 +0000
commite0971bc29ffee48eb8feb3318f2ee10e42fa49d2 (patch)
tree25e4cee7fdfd1f2dc86d21c51e69f280ee27968d
parent8c2d846a422a89151c65a4b19318852c9f2c2736 (diff)
downloadbcm5719-llvm-e0971bc29ffee48eb8feb3318f2ee10e42fa49d2.tar.gz
bcm5719-llvm-e0971bc29ffee48eb8feb3318f2ee10e42fa49d2.zip
add support for mingw64 target triples.
llvm-svn: 78797
-rw-r--r--llvm/include/llvm/ADT/Triple.h1
-rw-r--r--llvm/lib/Support/Triple.cpp3
2 files changed, 4 insertions, 0 deletions
diff --git a/llvm/include/llvm/ADT/Triple.h b/llvm/include/llvm/ADT/Triple.h
index 47f8b6e9416..2ea8f20bad5 100644
--- a/llvm/include/llvm/ADT/Triple.h
+++ b/llvm/include/llvm/ADT/Triple.h
@@ -70,6 +70,7 @@ public:
FreeBSD,
Linux,
MinGW32,
+ MinGW64,
NetBSD,
OpenBSD,
Win32
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp
index 7c028f4cf1b..a81fb5b58d6 100644
--- a/llvm/lib/Support/Triple.cpp
+++ b/llvm/lib/Support/Triple.cpp
@@ -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"))
OpenPOWER on IntegriCloud