Add triple parsing support for TCE.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79461 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp
index df28b98..dd767e2 100644
--- a/lib/Support/Triple.cpp
+++ b/lib/Support/Triple.cpp
@@ -33,6 +33,7 @@
case ppc: return "powerpc";
case sparc: return "sparc";
case systemz: return "s390x";
+ case tce: return "tce";
case thumb: return "thumb";
case x86: return "i386";
case x86_64: return "x86_64";
@@ -99,6 +100,8 @@
return sparc;
if (Name == "systemz")
return systemz;
+ if (Name == "tce")
+ return tce;
if (Name == "thumb")
return thumb;
if (Name == "x86")
@@ -156,6 +159,8 @@
Arch = sparc;
else if (ArchName == "s390x")
Arch = systemz;
+ else if (ArchName == "tce")
+ Arch = tce;
else
Arch = UnknownArch;