diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2013-05-03 13:26:09 +0200 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2013-05-10 16:05:32 +0200 |
commit | ba3f69880173704282425d929129ade3652b4af1 (patch) | |
tree | 2959d3266ce167972cf857cc06379fd59804bfa5 /lib/Support/Triple.cpp | |
parent | 5f32469bd4d236a84313580c97085abb385ed605 (diff) | |
download | llvm-ba3f69880173704282425d929129ade3652b4af1.tar.gz llvm-ba3f69880173704282425d929129ade3652b4af1.tar.bz2 llvm-ba3f69880173704282425d929129ade3652b4af1.tar.xz |
[Embtk]: ARM: support more possible GNU triples
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
(cherry picked from commit 15576f4b00b24f85206e5fcfffe832a1c6cb7a75)
Diffstat (limited to 'lib/Support/Triple.cpp')
-rw-r--r-- | lib/Support/Triple.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp index 412e34ccc5..d62e2b36b5 100644 --- a/lib/Support/Triple.cpp +++ b/lib/Support/Triple.cpp @@ -160,6 +160,8 @@ Triple::ArchType Triple::getArchTypeForLLVMName(StringRef Name) { return StringSwitch<Triple::ArchType>(Name) .Case("aarch64", aarch64) .Case("arm", arm) + .Case("armeb", arm) + .Case("armel", arm) .Case("mips", mips) .Case("mipsel", mipsel) .Case("mips64", mips64) @@ -224,7 +226,7 @@ static Triple::ArchType parseArch(StringRef ArchName) { .Cases("powerpc64", "ppu", Triple::ppc64) .Case("mblaze", Triple::mblaze) .Case("aarch64", Triple::aarch64) - .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) @@ -295,6 +297,8 @@ static Triple::EnvironmentType parseEnvironment(StringRef EnvironmentName) { .StartsWith("eabi", Triple::EABI) .StartsWith("gnueabihf", Triple::GNUEABIHF) .StartsWith("gnueabi", Triple::GNUEABI) + .StartsWith("uclibceabi", Triple::GNUEABI) + .StartsWith("musleabi", Triple::GNUEABI) .StartsWith("gnux32", Triple::GNUX32) .StartsWith("gnu", Triple::GNU) .StartsWith("macho", Triple::MachO) |