summaryrefslogtreecommitdiff
path: root/lib/Support
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-08-19 20:46:03 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-08-19 20:46:03 +0000
commit74db89e30fbd97808786026e56bcf1edb37469c7 (patch)
tree78e5e074ba034a05b8d218c77c2845464b99ea8c /lib/Support
parent7ab2fef792238ec467cf3351ee63b4b8c026a3dd (diff)
downloadllvm-74db89e30fbd97808786026e56bcf1edb37469c7.tar.gz
llvm-74db89e30fbd97808786026e56bcf1edb37469c7.tar.bz2
llvm-74db89e30fbd97808786026e56bcf1edb37469c7.tar.xz
Add triple parsing support for TCE.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79461 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r--lib/Support/Triple.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp
index df28b98b68..dd767e260c 100644
--- a/lib/Support/Triple.cpp
+++ b/lib/Support/Triple.cpp
@@ -33,6 +33,7 @@ const char *Triple::getArchTypeName(ArchType Kind) {
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 @@ Triple::ArchType Triple::getArchTypeForLLVMName(const StringRef &Name) {
return sparc;
if (Name == "systemz")
return systemz;
+ if (Name == "tce")
+ return tce;
if (Name == "thumb")
return thumb;
if (Name == "x86")
@@ -156,6 +159,8 @@ void Triple::Parse() const {
Arch = sparc;
else if (ArchName == "s390x")
Arch = systemz;
+ else if (ArchName == "tce")
+ Arch = tce;
else
Arch = UnknownArch;