summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2012-01-18 23:35:29 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2012-01-18 23:35:29 +0000
commitf5e78fa8d17e4130b8c8520ef5d426c915abd605 (patch)
tree651a9d9c5ba0f556363547c68a608251afb8c0e1 /llvm/lib
parentc64d3230d2f37014b9419e1555c9bca22c45634d (diff)
downloadbcm5719-llvm-f5e78fa8d17e4130b8c8520ef5d426c915abd605.tar.gz
bcm5719-llvm-f5e78fa8d17e4130b8c8520ef5d426c915abd605.zip
Add support for the gnueabihf environment. Patch by Sylvestre Ledru.
llvm-svn: 148434
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Support/Triple.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp
index 732fca5c133..8daedf9ffe2 100644
--- a/llvm/lib/Support/Triple.cpp
+++ b/llvm/lib/Support/Triple.cpp
@@ -122,6 +122,7 @@ const char *Triple::getEnvironmentTypeName(EnvironmentType Kind) {
switch (Kind) {
case UnknownEnvironment: return "unknown";
case GNU: return "gnu";
+ case GNUEABIHF: return "gnueabihf";
case GNUEABI: return "gnueabi";
case EABI: return "eabi";
case MachO: return "macho";
@@ -382,6 +383,8 @@ Triple::OSType Triple::ParseOS(StringRef OSName) {
Triple::EnvironmentType Triple::ParseEnvironment(StringRef EnvironmentName) {
if (EnvironmentName.startswith("eabi"))
return EABI;
+ else if (EnvironmentName.startswith("gnueabihf"))
+ return GNUEABIHF;
else if (EnvironmentName.startswith("gnueabi"))
return GNUEABI;
else if (EnvironmentName.startswith("gnu"))
OpenPOWER on IntegriCloud