add haiku support, patch by Paul Davey!

llvm-svn: 84238
This commit is contained in:
Chris Lattner 2009-10-16 02:06:30 +00:00
parent f847117ac8
commit 27f2049305
2 changed files with 5 additions and 1 deletions

View File

@ -95,7 +95,8 @@ public:
NetBSD,
OpenBSD,
Solaris,
Win32
Win32,
Haiku
};
private:

View File

@ -96,6 +96,7 @@ const char *Triple::getOSTypeName(OSType Kind) {
case OpenBSD: return "openbsd";
case Solaris: return "solaris";
case Win32: return "win32";
case Haiku: return "haiku";
}
return "<invalid>";
@ -276,6 +277,8 @@ void Triple::Parse() const {
OS = Solaris;
else if (OSName.startswith("win32"))
OS = Win32;
else if (OSName.startswith("haiku"))
OS = Haiku;
else
OS = UnknownOS;