summaryrefslogtreecommitdiff
path: root/lib/Support/Triple.cpp
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@auroraux.org>2009-11-19 11:59:00 +0000
committerEdward O'Callaghan <eocallaghan@auroraux.org>2009-11-19 11:59:00 +0000
commitcc9fa81fe1675b29fa813945c52abee692229143 (patch)
tree0fb77f53aee24f05ee754ba5f17989a8a92a4df8 /lib/Support/Triple.cpp
parented54de40a712ab6471a6c369e30d827017a67757 (diff)
downloadllvm-cc9fa81fe1675b29fa813945c52abee692229143.tar.gz
llvm-cc9fa81fe1675b29fa813945c52abee692229143.tar.bz2
llvm-cc9fa81fe1675b29fa813945c52abee692229143.tar.xz
Add PS3 Triple class, Credit to John Thompson.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89339 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Triple.cpp')
-rw-r--r--lib/Support/Triple.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp
index 840fb98fe9..2fec094d79 100644
--- a/lib/Support/Triple.cpp
+++ b/lib/Support/Triple.cpp
@@ -90,6 +90,7 @@ const char *Triple::getOSTypeName(OSType Kind) {
case DragonFly: return "dragonfly";
case FreeBSD: return "freebsd";
case Linux: return "linux";
+ case Lv2: return "lv2";
case MinGW32: return "mingw32";
case MinGW64: return "mingw64";
case NetBSD: return "netbsd";
@@ -227,7 +228,7 @@ void Triple::Parse() const {
Arch = pic16;
else if (ArchName == "powerpc")
Arch = ppc;
- else if (ArchName == "powerpc64")
+ else if ((ArchName == "powerpc64") || (ArchName == "ppu"))
Arch = ppc64;
else if (ArchName == "arm" ||
ArchName.startswith("armv") ||
@@ -293,6 +294,8 @@ void Triple::Parse() const {
OS = FreeBSD;
else if (OSName.startswith("linux"))
OS = Linux;
+ else if (OSName.startswith("lv2"))
+ OS = Lv2;
else if (OSName.startswith("mingw32"))
OS = MinGW32;
else if (OSName.startswith("mingw64"))