This patch adds support of le32 pseudo-cpu that stands for generic
32-bit little-endian CPU. Used by PNaCl and Emscripten.




git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138335 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp
index ccb1a24..af934ae 100644
--- a/lib/Support/Triple.cpp
+++ b/lib/Support/Triple.cpp
@@ -38,6 +38,7 @@
   case mblaze:  return "mblaze";
   case ptx32:   return "ptx32";
   case ptx64:   return "ptx64";
+  case le32:    return "le32";
   }
 
   return "<invalid>";
@@ -72,6 +73,8 @@
 
   case ptx32:   return "ptx";
   case ptx64:   return "ptx";
+
+  case le32:    return "le32";
   }
 }
 
@@ -171,6 +174,8 @@
     return ptx32;
   if (Name == "ptx64")
     return ptx64;
+  if (Name == "le32")
+    return le32;
 
   return UnknownArch;
 }
@@ -249,6 +254,8 @@
     return "ptx32";
   if (Str == "ptx64")
     return "ptx64";
+  if (Str == "le32")
+    return "le32";
   return NULL;
 }
 
@@ -302,6 +309,8 @@
     return ptx32;
   else if (ArchName == "ptx64")
     return ptx64;
+  else if (ArchName == "le32")
+    return le32;
   else
     return UnknownArch;
 }