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
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 @@
     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 @@
   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"))