diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-08-12 06:32:10 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-08-12 06:32:10 +0000 |
| commit | e0971bc29ffee48eb8feb3318f2ee10e42fa49d2 (patch) | |
| tree | 25e4cee7fdfd1f2dc86d21c51e69f280ee27968d /llvm/lib/Support/Triple.cpp | |
| parent | 8c2d846a422a89151c65a4b19318852c9f2c2736 (diff) | |
| download | llvm-e0971bc29ffee48eb8feb3318f2ee10e42fa49d2.zip llvm-e0971bc29ffee48eb8feb3318f2ee10e42fa49d2.tar.gz llvm-e0971bc29ffee48eb8feb3318f2ee10e42fa49d2.tar.bz2 | |
add support for mingw64 target triples.
llvm-svn: 78797
Diffstat (limited to 'llvm/lib/Support/Triple.cpp')
| -rw-r--r-- | llvm/lib/Support/Triple.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp index 7c028f4..a81fb5b 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")) |
