Index: lib/Support/Triple.cpp
===================================================================
--- lib/Support/Triple.cpp	(revision 88799)
+++ lib/Support/Triple.cpp	(working copy)
@@ -94,6 +94,7 @@
   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 @@
     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"))
Index: include/llvm/ADT/Triple.h
===================================================================
--- include/llvm/ADT/Triple.h	(revision 88799)
+++ include/llvm/ADT/Triple.h	(working copy)
@@ -94,6 +94,7 @@
     MinGW64,
     NetBSD,
     OpenBSD,
+    Psp,
     Solaris,
     Win32,
     Haiku
