forked from OSchip/llvm-project
Add PS3 Triple class, Credit to John Thompson.
llvm-svn: 89339
This commit is contained in:
parent
82adca8373
commit
ba993b8add
llvm
|
@ -64,7 +64,7 @@ public:
|
||||||
msp430, // MSP430: msp430
|
msp430, // MSP430: msp430
|
||||||
pic16, // PIC16: pic16
|
pic16, // PIC16: pic16
|
||||||
ppc, // PPC: powerpc
|
ppc, // PPC: powerpc
|
||||||
ppc64, // PPC64: powerpc64
|
ppc64, // PPC64: powerpc64, ppu
|
||||||
sparc, // Sparc: sparc
|
sparc, // Sparc: sparc
|
||||||
systemz, // SystemZ: s390x
|
systemz, // SystemZ: s390x
|
||||||
tce, // TCE (http://tce.cs.tut.fi/): tce
|
tce, // TCE (http://tce.cs.tut.fi/): tce
|
||||||
|
@ -90,6 +90,7 @@ public:
|
||||||
DragonFly,
|
DragonFly,
|
||||||
FreeBSD,
|
FreeBSD,
|
||||||
Linux,
|
Linux,
|
||||||
|
Lv2, // PS3
|
||||||
MinGW32,
|
MinGW32,
|
||||||
MinGW64,
|
MinGW64,
|
||||||
NetBSD,
|
NetBSD,
|
||||||
|
|
|
@ -90,6 +90,7 @@ const char *Triple::getOSTypeName(OSType Kind) {
|
||||||
case DragonFly: return "dragonfly";
|
case DragonFly: return "dragonfly";
|
||||||
case FreeBSD: return "freebsd";
|
case FreeBSD: return "freebsd";
|
||||||
case Linux: return "linux";
|
case Linux: return "linux";
|
||||||
|
case Lv2: return "lv2";
|
||||||
case MinGW32: return "mingw32";
|
case MinGW32: return "mingw32";
|
||||||
case MinGW64: return "mingw64";
|
case MinGW64: return "mingw64";
|
||||||
case NetBSD: return "netbsd";
|
case NetBSD: return "netbsd";
|
||||||
|
@ -227,7 +228,7 @@ void Triple::Parse() const {
|
||||||
Arch = pic16;
|
Arch = pic16;
|
||||||
else if (ArchName == "powerpc")
|
else if (ArchName == "powerpc")
|
||||||
Arch = ppc;
|
Arch = ppc;
|
||||||
else if (ArchName == "powerpc64")
|
else if ((ArchName == "powerpc64") || (ArchName == "ppu"))
|
||||||
Arch = ppc64;
|
Arch = ppc64;
|
||||||
else if (ArchName == "arm" ||
|
else if (ArchName == "arm" ||
|
||||||
ArchName.startswith("armv") ||
|
ArchName.startswith("armv") ||
|
||||||
|
@ -293,6 +294,8 @@ void Triple::Parse() const {
|
||||||
OS = FreeBSD;
|
OS = FreeBSD;
|
||||||
else if (OSName.startswith("linux"))
|
else if (OSName.startswith("linux"))
|
||||||
OS = Linux;
|
OS = Linux;
|
||||||
|
else if (OSName.startswith("lv2"))
|
||||||
|
OS = Lv2;
|
||||||
else if (OSName.startswith("mingw32"))
|
else if (OSName.startswith("mingw32"))
|
||||||
OS = MinGW32;
|
OS = MinGW32;
|
||||||
else if (OSName.startswith("mingw64"))
|
else if (OSName.startswith("mingw64"))
|
||||||
|
|
Loading…
Reference in New Issue