summaryrefslogtreecommitdiff
path: root/lib/Support/Triple.cpp
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
commit8e6208304bb1a885bc5970c090c97eaebf8a15f8 (patch)
treeaa37af983b3f8ece66ba5f77ded269266a35b82a /lib/Support/Triple.cpp
parent118987f080b9cf720f113f2b3150f0b0470eeed7 (diff)
downloadllvm-8e6208304bb1a885bc5970c090c97eaebf8a15f8.tar.gz
llvm-8e6208304bb1a885bc5970c090c97eaebf8a15f8.tar.bz2
llvm-8e6208304bb1a885bc5970c090c97eaebf8a15f8.tar.xz
add support for mingw64 target triples.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78797 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Triple.cpp')
-rw-r--r--lib/Support/Triple.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp
index 7c028f4cf1..a81fb5b58d 100644
--- a/lib/Support/Triple.cpp
+++ b/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"))