Teach the Triple class about kfreebsd (FreeBSD kernel with

a GNU userspace).

llvm-svn: 136085
This commit is contained in:
Duncan Sands 2011-07-26 15:30:04 +00:00
parent a4148a5a84
commit 0a14a12b51
2 changed files with 4 additions and 0 deletions

View File

@ -82,6 +82,7 @@ public:
DragonFly,
FreeBSD,
IOS,
KFreeBSD,
Linux,
Lv2, // PS3
MacOSX,

View File

@ -97,6 +97,7 @@ const char *Triple::getOSTypeName(OSType Kind) {
case DragonFly: return "dragonfly";
case FreeBSD: return "freebsd";
case IOS: return "ios";
case KFreeBSD: return "kfreebsd";
case Linux: return "linux";
case Lv2: return "lv2";
case MacOSX: return "macosx";
@ -327,6 +328,8 @@ Triple::OSType Triple::ParseOS(StringRef OSName) {
return FreeBSD;
else if (OSName.startswith("ios"))
return IOS;
else if (OSName.startswith("kfreebsd"))
return KFreeBSD;
else if (OSName.startswith("linux"))
return Linux;
else if (OSName.startswith("lv2"))