add haiku support, patch by Paul Davey!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84238 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2009-10-16 02:06:30 +00:00
parent a4d8667c87
commit a43fc3452b
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;