aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Support/Triple.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp
index 279bd43..db2b300 100644
--- a/lib/Support/Triple.cpp
+++ b/lib/Support/Triple.cpp
@@ -48,6 +48,7 @@ const char *Triple::getOSTypeName(OSType Kind) {
case DragonFly: return "dragonfly";
case FreeBSD: return "freebsd";
case Linux: return "linux";
+ case NetBSD: return "netbsd";
case OpenBSD: return "openbsd";
}
@@ -91,6 +92,8 @@ void Triple::Parse() const {
OS = FreeBSD;
else if (memcmp(&OSName[0], "linux", 5) == 0)
OS = Linux;
+ else if (memcmp(&OSName[0], "netbsd", 6) == 0)
+ OS = NetBSD;
else if (memcmp(&OSName[0], "openbsd", 7) == 0)
OS = OpenBSD;
else