diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-08-19 20:46:03 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-08-19 20:46:03 +0000 |
commit | 28c7bbf51595b0fc810158512ee4ec556b59f6b8 (patch) | |
tree | cb1939f6e10f2adf8120516bd792207b27710a0e /llvm/lib/Support | |
parent | 62c850fb8fdb345efdefcb610c87731e0491c9ff (diff) | |
download | bcm5719-llvm-28c7bbf51595b0fc810158512ee4ec556b59f6b8.tar.gz bcm5719-llvm-28c7bbf51595b0fc810158512ee4ec556b59f6b8.zip |
Add triple parsing support for TCE.
llvm-svn: 79461
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r-- | llvm/lib/Support/Triple.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp index df28b98b689..dd767e260cb 100644 --- a/llvm/lib/Support/Triple.cpp +++ b/llvm/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; |