forked from OSchip/llvm-project
[mips] Recognise the triple used by Debian stretch for mips64el.
Summary: The triple used for this distribution is mips64el-linux-gnuabi64. Reviewers: sdardis Subscribers: sdardis, llvm-commits Differential Revision: https://reviews.llvm.org/D22406 llvm-svn: 275966
This commit is contained in:
parent
bbe3860244
commit
2cb55d7dfd
|
@ -174,6 +174,7 @@ public:
|
||||||
UnknownEnvironment,
|
UnknownEnvironment,
|
||||||
|
|
||||||
GNU,
|
GNU,
|
||||||
|
GNUABI64,
|
||||||
GNUEABI,
|
GNUEABI,
|
||||||
GNUEABIHF,
|
GNUEABIHF,
|
||||||
GNUX32,
|
GNUX32,
|
||||||
|
@ -476,8 +477,9 @@ public:
|
||||||
|
|
||||||
bool isGNUEnvironment() const {
|
bool isGNUEnvironment() const {
|
||||||
EnvironmentType Env = getEnvironment();
|
EnvironmentType Env = getEnvironment();
|
||||||
return Env == Triple::GNU || Env == Triple::GNUEABI ||
|
return Env == Triple::GNU || Env == Triple::GNUABI64 ||
|
||||||
Env == Triple::GNUEABIHF || Env == Triple::GNUX32;
|
Env == Triple::GNUEABI || Env == Triple::GNUEABIHF ||
|
||||||
|
Env == Triple::GNUX32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Checks if the environment could be MSVC.
|
/// Checks if the environment could be MSVC.
|
||||||
|
|
|
@ -201,6 +201,7 @@ const char *Triple::getEnvironmentTypeName(EnvironmentType Kind) {
|
||||||
switch (Kind) {
|
switch (Kind) {
|
||||||
case UnknownEnvironment: return "unknown";
|
case UnknownEnvironment: return "unknown";
|
||||||
case GNU: return "gnu";
|
case GNU: return "gnu";
|
||||||
|
case GNUABI64: return "gnuabi64";
|
||||||
case GNUEABIHF: return "gnueabihf";
|
case GNUEABIHF: return "gnueabihf";
|
||||||
case GNUEABI: return "gnueabi";
|
case GNUEABI: return "gnueabi";
|
||||||
case GNUX32: return "gnux32";
|
case GNUX32: return "gnux32";
|
||||||
|
@ -468,6 +469,7 @@ static Triple::EnvironmentType parseEnvironment(StringRef EnvironmentName) {
|
||||||
return StringSwitch<Triple::EnvironmentType>(EnvironmentName)
|
return StringSwitch<Triple::EnvironmentType>(EnvironmentName)
|
||||||
.StartsWith("eabihf", Triple::EABIHF)
|
.StartsWith("eabihf", Triple::EABIHF)
|
||||||
.StartsWith("eabi", Triple::EABI)
|
.StartsWith("eabi", Triple::EABI)
|
||||||
|
.StartsWith("gnuabi64", Triple::GNUABI64)
|
||||||
.StartsWith("gnueabihf", Triple::GNUEABIHF)
|
.StartsWith("gnueabihf", Triple::GNUEABIHF)
|
||||||
.StartsWith("gnueabi", Triple::GNUEABI)
|
.StartsWith("gnueabi", Triple::GNUEABI)
|
||||||
.StartsWith("gnux32", Triple::GNUX32)
|
.StartsWith("gnux32", Triple::GNUX32)
|
||||||
|
|
Loading…
Reference in New Issue