aboutsummaryrefslogtreecommitdiffstats
path: root/lib
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
commit2447389bac8b4fc1b1edb3240a408a92616f2ca2 (patch)
tree7017ac436eaddcb8927793bd2b739c469d2cf153 /lib
parentfdb0b7b555aaea054f85f654275fce56e5d7d1d3 (diff)
downloadexternal_llvm-2447389bac8b4fc1b1edb3240a408a92616f2ca2.zip
external_llvm-2447389bac8b4fc1b1edb3240a408a92616f2ca2.tar.gz
external_llvm-2447389bac8b4fc1b1edb3240a408a92616f2ca2.tar.bz2
Recognize xscale as an ARM arch.
- Patch by Yonggang Luo. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79315 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Support/Triple.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp
index 0407750..e5ee6d5 100644
--- a/lib/Support/Triple.cpp
+++ b/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"))