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-03 13:26:09 +0200 |
commit | 15576f4b00b24f85206e5fcfffe832a1c6cb7a75 (patch) | |
tree | 36e8f2f06ba040454dd09dac702dcb2c91138839 | |
parent | 555e8f606f5c7d1c5e90355b6d3e1e2b0e87dd2b (diff) | |
download | llvm-15576f4b00b24f85206e5fcfffe832a1c6cb7a75.tar.gz llvm-15576f4b00b24f85206e5fcfffe832a1c6cb7a75.tar.bz2 llvm-15576f4b00b24f85206e5fcfffe832a1c6cb7a75.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 d2508ac1ef..7b4c8a8e65 100644 --- a/lib/Support/Triple.cpp +++ b/lib/Support/Triple.cpp @@ -157,6 +157,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) @@ -220,7 +222,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) @@ -290,6 +292,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) |