summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Triple.cpp
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2013-12-16 18:51:28 +0000
committerJoerg Sonnenberger <joerg@bec.de>2013-12-16 18:51:28 +0000
commit8fe41b731968da51e9fb2b0b889fe49df6c23649 (patch)
tree58ce1d0b345603d6628b3b78416039687af0250a /llvm/lib/Support/Triple.cpp
parent0c1652dabd56bf8d60e693c4dd6675c65cbf1370 (diff)
downloadbcm5719-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.cpp2
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)
OpenPOWER on IntegriCloud