llvm.org GIT mirror llvm / fdb0b7b
Add Triple matching for pic16 arch and solaris OS. - Patch by Yonggang Luo. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79314 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Dunbar 11 years ago
2 changed file(s) with 10 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
4242 mips, // MIPS: mips, mipsallegrex
4343 mipsel, // MIPSEL: mipsel, mipsallegrexel, psp
4444 msp430, // MPS430: msp430
45 pic16, // PIC16: pic16
4546 ppc, // PPC: powerpc
4647 ppc64, // PPC64: powerpc64
4748 sparc, // Sparc: sparc
7273 MinGW64,
7374 NetBSD,
7475 OpenBSD,
76 Solaris,
7577 Win32
7678 };
7779
2727 case mips: return "mips";
2828 case mipsel: return "mipsel";
2929 case msp430: return "msp430";
30 case pic16: return "pic16";
3031 case ppc64: return "powerpc64";
3132 case ppc: return "powerpc";
3233 case sparc: return "sparc";
6566 case MinGW64: return "mingw64";
6667 case NetBSD: return "netbsd";
6768 case OpenBSD: return "openbsd";
69 case Solaris: return "solaris";
6870 case Win32: return "win32";
6971 }
7072
8688 return mipsel;
8789 if (Name == "msp430")
8890 return msp430;
91 if (Name == "pic16")
92 return pic16;
8993 if (Name == "ppc64")
9094 return ppc64;
9195 if (Name == "ppc")
118122 Arch = x86;
119123 else if (ArchName == "amd64" || ArchName == "x86_64")
120124 Arch = x86_64;
125 else if (ArchName == "pic16")
126 Arch = pic16;
121127 else if (ArchName == "powerpc")
122128 Arch = ppc;
123129 else if (ArchName == "powerpc64")
143149 Arch = sparc;
144150 else if (ArchName == "s390x")
145151 Arch = systemz;
146 else if (ArchName == "bfin")
147 Arch = bfin;
148152 else
149153 Arch = UnknownArch;
150154
177181 OS = NetBSD;
178182 else if (OSName.startswith("openbsd"))
179183 OS = OpenBSD;
184 else if (OSName.startswith("solaris"))
185 OS = Solaris;
180186 else if (OSName.startswith("win32"))
181187 OS = Win32;
182188 else