diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-13 20:22:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-13 20:22:23 +0000 |
commit | b8ac841c9a275cc8d4e1a92dd06cc99323e35fa2 (patch) | |
tree | dfb57c3f36f2a0d91c017b43971808c483f2c4f1 /lib/Support/Triple.cpp | |
parent | 892838336ccdf1992380980fdd676677391fa540 (diff) |
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
Diffstat (limited to 'lib/Support/Triple.cpp')
-rw-r--r-- | lib/Support/Triple.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp index 279bd43ac5..db2b3000b6 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 |