[llvm-commits] patch: add NetBSD to class Triple
Krister Walfridsson
krister.walfridsson at gmail.com
Mon Jul 13 06:35:41 PDT 2009
The attached patch add NetBSD to class Triple.
/Krister
-------------- next part --------------
Index: include/llvm/ADT/Triple.h
===================================================================
--- include/llvm/ADT/Triple.h (revision 75441)
+++ include/llvm/ADT/Triple.h (working copy)
@@ -54,6 +54,7 @@
DragonFly,
FreeBSD,
Linux,
+ NetBSD,
OpenBSD
};
Index: lib/Support/Triple.cpp
===================================================================
--- lib/Support/Triple.cpp (revision 75441)
+++ lib/Support/Triple.cpp (working copy)
@@ -48,6 +48,7 @@
case DragonFly: return "dragonfly";
case FreeBSD: return "freebsd";
case Linux: return "linux";
+ case NetBSD: return "netbsd";
case OpenBSD: return "openbsd";
}
@@ -91,6 +92,8 @@
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
More information about the llvm-commits
mailing list