Add the triple for the Sony Playstation®4.
[oota-llvm.git] / lib / Support / Triple.cpp
index 68548299d34d729f0eae35a5250d7b4bb8b5c6b0..4032d6d77c9c41c2dbfea17c1b605cb92b7d6a13 100644 (file)
@@ -163,6 +163,7 @@ const char *Triple::getOSTypeName(OSType Kind) {
   case CUDA: return "cuda";
   case NVCL: return "nvcl";
   case AMDHSA: return "amdhsa";
+  case PS4: return "ps4";
   }
 
   llvm_unreachable("Invalid OSType");
@@ -356,6 +357,7 @@ static Triple::OSType parseOS(StringRef OSName) {
     .StartsWith("cuda", Triple::CUDA)
     .StartsWith("nvcl", Triple::NVCL)
     .StartsWith("amdhsa", Triple::AMDHSA)
+    .StartsWith("ps4", Triple::PS4)
     .Default(Triple::UnknownOS);
 }