summaryrefslogtreecommitdiff
path: root/lib/Support/Triple.cpp
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@auroraux.org>2009-11-15 10:18:17 +0000
committerEdward O'Callaghan <eocallaghan@auroraux.org>2009-11-15 10:18:17 +0000
commite0fb75d5864c0eef0464b216ac46bc1642469508 (patch)
tree9f73643514cf1acba0f02ebc31c619ab391bed6f /lib/Support/Triple.cpp
parent2cb097d5cddfc9ac7d9f4973f9f8a3d2c9feea72 (diff)
downloadllvm-e0fb75d5864c0eef0464b216ac46bc1642469508.tar.gz
llvm-e0fb75d5864c0eef0464b216ac46bc1642469508.tar.bz2
llvm-e0fb75d5864c0eef0464b216ac46bc1642469508.tar.xz
Add PSP OS Target to Triple, Credit to Bruno Cardoso Lopes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88849 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Triple.cpp')
-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 73e6bd3828..40f055f462 100644
--- a/lib/Support/Triple.cpp
+++ b/lib/Support/Triple.cpp
@@ -94,6 +94,7 @@ const char *Triple::getOSTypeName(OSType Kind) {
case MinGW64: return "mingw64";
case NetBSD: return "netbsd";
case OpenBSD: return "openbsd";
+ case Psp: return "psp";
case Solaris: return "solaris";
case Win32: return "win32";
case Haiku: return "haiku";
@@ -273,6 +274,8 @@ void Triple::Parse() const {
OS = NetBSD;
else if (OSName.startswith("openbsd"))
OS = OpenBSD;
+ else if (OSName.startswith("psp"))
+ OS = Psp;
else if (OSName.startswith("solaris"))
OS = Solaris;
else if (OSName.startswith("win32"))