summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2017-09-14 06:50:05 +0000
committerSimon Atanasyan <simon@atanasyan.com>2017-09-14 06:50:05 +0000
commitb35dd1c9082bf8788390fbf6eedb0ed4a5180f8a (patch)
tree719016ffa97b3af7fc436c4a4fc25dfb611953bd /llvm/lib/Support
parent48624d327afab3f1fdc5e6df565fb8b52903f7ae (diff)
downloadbcm5719-llvm-b35dd1c9082bf8788390fbf6eedb0ed4a5180f8a.tar.gz
bcm5719-llvm-b35dd1c9082bf8788390fbf6eedb0ed4a5180f8a.zip
[mips] Recognise the triple used by Debian for MIPS n32 ABI
Triples like mips64-linux-gnuabin32 are documented in this article: https://wiki.debian.org/Multiarch/Tuples llvm-svn: 313231
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/Triple.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp
index 73dc59ce41b..8dc582ab95a 100644
--- a/llvm/lib/Support/Triple.cpp
+++ b/llvm/lib/Support/Triple.cpp
@@ -216,6 +216,7 @@ StringRef Triple::getEnvironmentTypeName(EnvironmentType Kind) {
switch (Kind) {
case UnknownEnvironment: return "unknown";
case GNU: return "gnu";
+ case GNUABIN32: return "gnuabin32";
case GNUABI64: return "gnuabi64";
case GNUEABIHF: return "gnueabihf";
case GNUEABI: return "gnueabi";
@@ -505,6 +506,7 @@ static Triple::EnvironmentType parseEnvironment(StringRef EnvironmentName) {
return StringSwitch<Triple::EnvironmentType>(EnvironmentName)
.StartsWith("eabihf", Triple::EABIHF)
.StartsWith("eabi", Triple::EABI)
+ .StartsWith("gnuabin32", Triple::GNUABIN32)
.StartsWith("gnuabi64", Triple::GNUABI64)
.StartsWith("gnueabihf", Triple::GNUEABIHF)
.StartsWith("gnueabi", Triple::GNUEABI)
OpenPOWER on IntegriCloud