llvm.org GIT mirror llvm / 74db89e
Add triple parsing support for TCE. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79461 91177308-0d34-0410-b5e6-96231b3b80d8 Eli Friedman 11 years ago
2 changed file(s) with 6 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
6161 ppc64, // PPC64: powerpc64
6262 sparc, // Sparc: sparc
6363 systemz, // SystemZ: s390x
64 tce, // TCE (http://tce.cs.tut.fi/): tce
6465 thumb, // Thumb: thumb, thumbv.*
6566 x86, // X86: i[3-9]86
6667 x86_64, // X86-64: amd64, x86_64
3232 case ppc: return "powerpc";
3333 case sparc: return "sparc";
3434 case systemz: return "s390x";
35 case tce: return "tce";
3536 case thumb: return "thumb";
3637 case x86: return "i386";
3738 case x86_64: return "x86_64";
9899 return sparc;
99100 if (Name == "systemz")
100101 return systemz;
102 if (Name == "tce")
103 return tce;
101104 if (Name == "thumb")
102105 return thumb;
103106 if (Name == "x86")
155158 Arch = sparc;
156159 else if (ArchName == "s390x")
157160 Arch = systemz;
161 else if (ArchName == "tce")
162 Arch = tce;
158163 else
159164 Arch = UnknownArch;
160165