Add triple for OpenBSD.

llvm-svn: 74422
This commit is contained in:
Duncan Sands 2009-06-29 13:36:13 +00:00
parent 24a3724b04
commit 14814d4477
2 changed files with 5 additions and 1 deletions

View File

@ -53,7 +53,8 @@ public:
Darwin,
DragonFly,
FreeBSD,
Linux
Linux,
OpenBSD
};
private:

View File

@ -48,6 +48,7 @@ const char *Triple::getOSTypeName(OSType Kind) {
case DragonFly: return "dragonfly";
case FreeBSD: return "freebsd";
case Linux: return "linux";
case OpenBSD: return "openbsd";
}
return "<invalid>";
@ -90,6 +91,8 @@ void Triple::Parse() const {
OS = FreeBSD;
else if (memcmp(&OSName[0], "linux", 5) == 0)
OS = Linux;
else if (memcmp(&OSName[0], "openbsd", 7) == 0)
OS = OpenBSD;
else
OS = UnknownOS;