summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Triple.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-05-29 19:39:04 +0000
committerJohn McCall <rjmccall@apple.com>2011-05-29 19:39:04 +0000
commit085d891d80cadcc985e65799a06634a785ac28fd (patch)
tree630e321cd32d64b7d4b738d354f1c35bbd4dc7f2 /llvm/lib/Support/Triple.cpp
parentc66d455e506468328e341e62b5d58b0d48b8884d (diff)
downloadbcm5719-llvm-085d891d80cadcc985e65799a06634a785ac28fd.tar.gz
bcm5719-llvm-085d891d80cadcc985e65799a06634a785ac28fd.zip
On Darwin ARM, set the UNWIND_RESUME libcall to _Unwind_SjLj_Resume.
This is important for the correct lowering of unwind instructions (which doesn't matter at all) and llvm.eh.resume calls (which does). llvm-svn: 132291
Diffstat (limited to 'llvm/lib/Support/Triple.cpp')
-rw-r--r--llvm/lib/Support/Triple.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp
index dbdb303a4fd..56b0878aa76 100644
--- a/llvm/lib/Support/Triple.cpp
+++ b/llvm/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")
OpenPOWER on IntegriCloud