Add scei vendor
authorJohn Thompson <John.Thompson.JTSoftware@gmail.com>
Tue, 15 Mar 2011 21:51:56 +0000 (21:51 +0000)
committerJohn Thompson <John.Thompson.JTSoftware@gmail.com>
Tue, 15 Mar 2011 21:51:56 +0000 (21:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127705 91177308-0d34-0410-b5e6-96231b3b80d8

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

index e6dcc23258f2fefcfd82206d9fe6cc5edcf60f97..ff9dd1972a483adaa28b81ad2281008b52322bae 100644 (file)
@@ -72,7 +72,8 @@ public:
     UnknownVendor,
 
     Apple,
-    PC
+    PC,
+    SCEI
   };
   enum OSType {
     UnknownOS,
index 36edf6eefa70e8f10435e61545d3500989ff0c5b..53ca48f8464db406d90b14cc278613607b368279 100644 (file)
@@ -84,6 +84,7 @@ const char *Triple::getVendorTypeName(VendorType Kind) {
 
   case Apple: return "apple";
   case PC: return "pc";
+  case SCEI: return "scei";
   }
 
   return "<invalid>";
@@ -296,6 +297,8 @@ Triple::VendorType Triple::ParseVendor(StringRef VendorName) {
     return Apple;
   else if (VendorName == "pc")
     return PC;
+  else if (VendorName == "scei")
+    return SCEI;
   else
     return UnknownVendor;
 }