Add PSP OS Target to Triple, Credit to Bruno Cardoso Lopes.
authorEdward O'Callaghan <eocallaghan@auroraux.org>
Sun, 15 Nov 2009 10:18:17 +0000 (10:18 +0000)
committerEdward O'Callaghan <eocallaghan@auroraux.org>
Sun, 15 Nov 2009 10:18:17 +0000 (10:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88849 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/Triple.h
lib/Support/Triple.cpp

index bf4dfee71473b8b9251e34ac25f9cf3add65b718..c59f79e17b06fdea56c12b96da195d65d7b5231e 100644 (file)
@@ -94,6 +94,7 @@ public:
     MinGW64,
     NetBSD,
     OpenBSD,
+    Psp,
     Solaris,
     Win32,
     Haiku
index 73e6bd3828f9ac7f1f44baf9716ad311b71802c4..40f055f462326a087c1a1313fa344d57801db4c8 100644 (file)
@@ -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"))