diff options
-rw-r--r-- | include/llvm/ADT/Triple.h | 1 | ||||
-rw-r--r-- | lib/Support/Triple.cpp | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/ADT/Triple.h b/include/llvm/ADT/Triple.h index c63d91be99..106084d074 100644 --- a/include/llvm/ADT/Triple.h +++ b/include/llvm/ADT/Triple.h @@ -62,6 +62,7 @@ public: ppc64, // PPC64: powerpc64 sparc, // Sparc: sparc systemz, // SystemZ: s390x + tce, // TCE (http://tce.cs.tut.fi/): tce thumb, // Thumb: thumb, thumbv.* x86, // X86: i[3-9]86 x86_64, // X86-64: amd64, x86_64 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; |