add support for mingw64 target triples.

llvm-svn: 78797
This commit is contained in:
Chris Lattner 2009-08-12 06:32:10 +00:00
parent 8c2d846a42
commit e0971bc29f
2 changed files with 4 additions and 0 deletions

View File

@ -70,6 +70,7 @@ public:
FreeBSD,
Linux,
MinGW32,
MinGW64,
NetBSD,
OpenBSD,
Win32

View 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"))