summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Triple.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-18 04:51:26 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-18 04:51:26 +0000
commit320d331311b6159fc6fa163f3dd06f4b0e41bb00 (patch)
tree9f52341cee2cbae7d51c964cc8a7c896ccf84296 /llvm/lib/Support/Triple.cpp
parent781f94d7fe789264ad9afb4c7747d5c9d04a5de9 (diff)
downloadbcm5719-llvm-320d331311b6159fc6fa163f3dd06f4b0e41bb00.tar.gz
bcm5719-llvm-320d331311b6159fc6fa163f3dd06f4b0e41bb00.zip
Recognize xscale as an ARM arch.
- Patch by Yonggang Luo. llvm-svn: 79315
Diffstat (limited to 'llvm/lib/Support/Triple.cpp')
-rw-r--r--llvm/lib/Support/Triple.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp
index 0407750bf26..e5ee6d5f456 100644
--- a/llvm/lib/Support/Triple.cpp
+++ b/llvm/lib/Support/Triple.cpp
@@ -130,7 +130,8 @@ void Triple::Parse() const {
else if (ArchName == "powerpc64")
Arch = ppc64;
else if (ArchName == "arm" ||
- ArchName.startswith("armv"))
+ ArchName.startswith("armv") ||
+ ArchName == "xscale")
Arch = arm;
else if (ArchName == "thumb" ||
ArchName.startswith("thumbv"))
OpenPOWER on IntegriCloud