mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Teach the Triple class about kfreebsd (FreeBSD kernel with
a GNU userspace). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136085 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3d72290ecb
commit
652b48bf23
@ -82,6 +82,7 @@ public:
|
||||
DragonFly,
|
||||
FreeBSD,
|
||||
IOS,
|
||||
KFreeBSD,
|
||||
Linux,
|
||||
Lv2, // PS3
|
||||
MacOSX,
|
||||
|
@ -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"))
|
||||
|
Loading…
Reference in New Issue
Block a user