[llvm-commits] [llvm] r79315 - in /llvm/trunk: include/llvm/ADT/Triple.h lib/Support/Triple.cpp
Daniel Dunbar
daniel at zuster.org
Mon Aug 17 21:51:26 PDT 2009
Author: ddunbar
Date: Mon Aug 17 23:51:26 2009
New Revision: 79315
URL: http://llvm.org/viewvc/llvm-project?rev=79315&view=rev
Log:
Recognize xscale as an ARM arch.
- Patch by Yonggang Luo.
Modified:
llvm/trunk/include/llvm/ADT/Triple.h
llvm/trunk/lib/Support/Triple.cpp
Modified: llvm/trunk/include/llvm/ADT/Triple.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/Triple.h?rev=79315&r1=79314&r2=79315&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/Triple.h (original)
+++ llvm/trunk/include/llvm/ADT/Triple.h Mon Aug 17 23:51:26 2009
@@ -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
Modified: llvm/trunk/lib/Support/Triple.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Triple.cpp?rev=79315&r1=79314&r2=79315&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Triple.cpp (original)
+++ llvm/trunk/lib/Support/Triple.cpp Mon Aug 17 23:51:26 2009
@@ -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"))
More information about the llvm-commits
mailing list