llvm.org GIT mirror llvm / 860aa66
Merging r275966: ------------------------------------------------------------------------ r275966 | dsanders | 2016-07-19 11:22:19 +0100 (Tue, 19 Jul 2016) | 11 lines [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 ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_39@276560 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Sanders 4 years ago
2 changed file(s) with 6 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
173173 UnknownEnvironment,
174174
175175 GNU,
176 GNUABI64,
176177 GNUEABI,
177178 GNUEABIHF,
178179 GNUX32,
475476
476477 bool isGNUEnvironment() const {
477478 EnvironmentType Env = getEnvironment();
478 return Env == Triple::GNU || Env == Triple::GNUEABI ||
479 Env == Triple::GNUEABIHF || Env == Triple::GNUX32;
479 return Env == Triple::GNU || Env == Triple::GNUABI64 ||
480 Env == Triple::GNUEABI || Env == Triple::GNUEABIHF ||
481 Env == Triple::GNUX32;
480482 }
481483
482484 /// Checks if the environment could be MSVC.
200200 switch (Kind) {
201201 case UnknownEnvironment: return "unknown";
202202 case GNU: return "gnu";
203 case GNUABI64: return "gnuabi64";
203204 case GNUEABIHF: return "gnueabihf";
204205 case GNUEABI: return "gnueabi";
205206 case GNUX32: return "gnux32";
467468 return StringSwitch(EnvironmentName)
468469 .StartsWith("eabihf", Triple::EABIHF)
469470 .StartsWith("eabi", Triple::EABI)
471 .StartsWith("gnuabi64", Triple::GNUABI64)
470472 .StartsWith("gnueabihf", Triple::GNUEABIHF)
471473 .StartsWith("gnueabi", Triple::GNUEABI)
472474 .StartsWith("gnux32", Triple::GNUX32)