diff options
author | Duncan Sands <baldrick@free.fr> | 2009-06-29 13:36:13 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-06-29 13:36:13 +0000 |
commit | cd1267d2d68f03026aed21e22f7e28efd510ec5f (patch) | |
tree | 975a1dd503b38299e442288ddb7115174778bb9f /lib/Support/Triple.cpp | |
parent | c91e68a0c4b92bac36c1b03c734f8795a757e669 (diff) |
Add triple for OpenBSD.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74422 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 dd5c3d61c2..279bd43ac5 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 OpenBSD: return "openbsd"; } return "<invalid>"; @@ -90,6 +91,8 @@ void Triple::Parse() const { OS = FreeBSD; else if (memcmp(&OSName[0], "linux", 5) == 0) OS = Linux; + else if (memcmp(&OSName[0], "openbsd", 7) == 0) + OS = OpenBSD; else OS = UnknownOS; |