summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-11-11 15:18:25 +0100
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-11-17 21:05:41 +0100
commit77632a1613fa1f2847f5be88bde73ad80a06e53b (patch)
tree0b8c67a64e2514480b058f61ac937b958415e7fa /lib
parentaab71049dfcabab6841d7113a66b3f57bbb577b5 (diff)
downloadllvm-77632a1613fa1f2847f5be88bde73ad80a06e53b.tar.gz
llvm-77632a1613fa1f2847f5be88bde73ad80a06e53b.tar.bz2
llvm-77632a1613fa1f2847f5be88bde73ad80a06e53b.tar.xz
ARM: support more possible GNU triples
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/Support/Triple.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp
index c058c05595..a6a6378004 100644
--- a/lib/Support/Triple.cpp
+++ b/lib/Support/Triple.cpp
@@ -155,6 +155,8 @@ const char *Triple::getEnvironmentTypeName(EnvironmentType Kind) {
Triple::ArchType Triple::getArchTypeForLLVMName(StringRef Name) {
return StringSwitch<Triple::ArchType>(Name)
.Case("arm", arm)
+ .Case("armeb", arm)
+ .Case("armel", arm)
.Case("cellspu", cellspu)
.Case("mips", mips)
.Case("mipsel", mipsel)
@@ -218,7 +220,7 @@ static Triple::ArchType parseArch(StringRef ArchName) {
.Case("powerpc", Triple::ppc)
.Cases("powerpc64", "ppu", Triple::ppc64)
.Case("mblaze", Triple::mblaze)
- .Cases("arm", "xscale", Triple::arm)
+ .Cases("arm", "armeb", "armel", "xscale", Triple::arm)
// FIXME: It would be good to replace these with explicit names for all the
// various suffixes supported.
.StartsWith("armv", Triple::arm)
@@ -289,6 +291,7 @@ static Triple::EnvironmentType parseEnvironment(StringRef EnvironmentName) {
.StartsWith("eabi", Triple::EABI)
.StartsWith("gnueabihf", Triple::GNUEABIHF)
.StartsWith("gnueabi", Triple::GNUEABI)
+ .StartsWith("uclibceabi", Triple::GNUEABI)
.StartsWith("gnu", Triple::GNU)
.StartsWith("macho", Triple::MachO)
.StartsWith("android", Triple::Android)