diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2013-05-03 13:26:09 +0200 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2014-04-13 01:56:53 +0200 |
commit | ff7f3fdd08f13abe2952566a6081df3d19c45b9c (patch) | |
tree | 65e746010795eb60cbbb756ccb4b0ff59eff43fa | |
parent | 6800b6d2afc0552264b63c204be94a3f8ccb2b17 (diff) | |
download | llvm-ff7f3fdd08f13abe2952566a6081df3d19c45b9c.tar.gz llvm-ff7f3fdd08f13abe2952566a6081df3d19c45b9c.tar.bz2 llvm-ff7f3fdd08f13abe2952566a6081df3d19c45b9c.tar.xz |
[Embtk]: ARM: support more possible GNU triples
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
-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 6c978a0244..7a9e2aa894 100644 --- a/lib/Support/Triple.cpp +++ b/lib/Support/Triple.cpp @@ -162,6 +162,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) @@ -226,7 +228,7 @@ static Triple::ArchType parseArch(StringRef ArchName) { .Cases("powerpc64", "ppu", Triple::ppc64) .Case("powerpc64le", Triple::ppc64le) .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) @@ -300,6 +302,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) |