mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
Add NetBSD to the Triple class, patch by Krister Walfridsson!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75489 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
892838336c
commit
b8ac841c9a
@ -54,6 +54,7 @@ public:
|
|||||||
DragonFly,
|
DragonFly,
|
||||||
FreeBSD,
|
FreeBSD,
|
||||||
Linux,
|
Linux,
|
||||||
|
NetBSD,
|
||||||
OpenBSD
|
OpenBSD
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -48,6 +48,7 @@ const char *Triple::getOSTypeName(OSType Kind) {
|
|||||||
case DragonFly: return "dragonfly";
|
case DragonFly: return "dragonfly";
|
||||||
case FreeBSD: return "freebsd";
|
case FreeBSD: return "freebsd";
|
||||||
case Linux: return "linux";
|
case Linux: return "linux";
|
||||||
|
case NetBSD: return "netbsd";
|
||||||
case OpenBSD: return "openbsd";
|
case OpenBSD: return "openbsd";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -91,6 +92,8 @@ void Triple::Parse() const {
|
|||||||
OS = FreeBSD;
|
OS = FreeBSD;
|
||||||
else if (memcmp(&OSName[0], "linux", 5) == 0)
|
else if (memcmp(&OSName[0], "linux", 5) == 0)
|
||||||
OS = Linux;
|
OS = Linux;
|
||||||
|
else if (memcmp(&OSName[0], "netbsd", 6) == 0)
|
||||||
|
OS = NetBSD;
|
||||||
else if (memcmp(&OSName[0], "openbsd", 7) == 0)
|
else if (memcmp(&OSName[0], "openbsd", 7) == 0)
|
||||||
OS = OpenBSD;
|
OS = OpenBSD;
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user