diff options
author | Joerg Sonnenberger <joerg@bec.de> | 2013-12-16 18:51:28 +0000 |
---|---|---|
committer | Joerg Sonnenberger <joerg@bec.de> | 2013-12-16 18:51:28 +0000 |
commit | 8fe41b731968da51e9fb2b0b889fe49df6c23649 (patch) | |
tree | 58ce1d0b345603d6628b3b78416039687af0250a /llvm/lib/Support/Triple.cpp | |
parent | 0c1652dabd56bf8d60e693c4dd6675c65cbf1370 (diff) | |
download | bcm5719-llvm-8fe41b731968da51e9fb2b0b889fe49df6c23649.tar.gz bcm5719-llvm-8fe41b731968da51e9fb2b0b889fe49df6c23649.zip |
Recognize EABIHF as environment and use it for RTAPI + VFP.
llvm-svn: 197405
Diffstat (limited to 'llvm/lib/Support/Triple.cpp')
-rw-r--r-- | llvm/lib/Support/Triple.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp index 20531b15efd..273316a0a6f 100644 --- a/llvm/lib/Support/Triple.cpp +++ b/llvm/lib/Support/Triple.cpp @@ -150,6 +150,7 @@ const char *Triple::getEnvironmentTypeName(EnvironmentType Kind) { case GNUEABI: return "gnueabi"; case GNUX32: return "gnux32"; case EABI: return "eabi"; + case EABIHF: return "eabihf"; case MachO: return "macho"; case Android: return "android"; case ELF: return "elf"; @@ -297,6 +298,7 @@ static Triple::OSType parseOS(StringRef OSName) { static Triple::EnvironmentType parseEnvironment(StringRef EnvironmentName) { return StringSwitch<Triple::EnvironmentType>(EnvironmentName) + .StartsWith("eabihf", Triple::EABIHF) .StartsWith("eabi", Triple::EABI) .StartsWith("gnueabihf", Triple::GNUEABIHF) .StartsWith("gnueabi", Triple::GNUEABI) |