diff options
Diffstat (limited to 'lib/Support/Triple.cpp')
-rw-r--r-- | lib/Support/Triple.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp index dbdb303a4f..56b0878aa7 100644 --- a/lib/Support/Triple.cpp +++ b/lib/Support/Triple.cpp @@ -27,6 +27,7 @@ const char *Triple::getArchTypeName(ArchType Kind) { case arm: return "arm"; case bfin: return "bfin"; case cellspu: return "cellspu"; + case glulx: return "glulx"; case mips: return "mips"; case mipsel: return "mipsel"; case msp430: return "msp430"; @@ -62,6 +63,8 @@ const char *Triple::getArchTypePrefix(ArchType Kind) { case cellspu: return "spu"; + case glulx: return "glulx"; + case ppc64: case ppc: return "ppc"; @@ -139,6 +142,8 @@ Triple::ArchType Triple::getArchTypeForLLVMName(StringRef Name) { return bfin; if (Name == "cellspu") return cellspu; + if (Name == "glulx") + return glulx; if (Name == "mips") return mips; if (Name == "mipsel") @@ -277,6 +282,8 @@ Triple::ArchType Triple::ParseArch(StringRef ArchName) { return thumb; else if (ArchName.startswith("alpha")) return alpha; + else if (ArchName.startswith("glulx")) + return glulx; else if (ArchName == "spu" || ArchName == "cellspu") return cellspu; else if (ArchName == "msp430") |