aboutsummaryrefslogtreecommitdiffstats
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
commitd723bc27b2f8000c8c7f20c25f963795c60c4eff (patch)
tree7017ac436eaddcb8927793bd2b739c469d2cf153
parent0545fd1108b3dc25749d2d8d84c5f135f98c9367 (diff)
downloadexternal_llvm-d723bc27b2f8000c8c7f20c25f963795c60c4eff.zip
external_llvm-d723bc27b2f8000c8c7f20c25f963795c60c4eff.tar.gz
external_llvm-d723bc27b2f8000c8c7f20c25f963795c60c4eff.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
-rw-r--r--include/llvm/ADT/Triple.h2
-rw-r--r--lib/Support/Triple.cpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/ADT/Triple.h b/include/llvm/ADT/Triple.h
index 336760f..4ba8576 100644
--- a/include/llvm/ADT/Triple.h
+++ b/include/llvm/ADT/Triple.h
@@ -37,7 +37,7 @@ public:
UnknownArch,
alpha, // Alpha: alpha
- arm, // ARM; arm, armv.*
+ arm, // ARM; arm, armv.*, xscale
bfin, // Blackfin: bfin
cellspu, // CellSPU: spu, cellspu
mips, // MIPS: mips, mipsallegrex
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"))