summaryrefslogtreecommitdiff
path: root/lib/Support/Triple.cpp
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
commit8887a0f34152b63a84e759b76694d6928d01b4ee (patch)
tree4c2345ae3cb917c9c0e5d5edc86b931c7c80e706 /lib/Support/Triple.cpp
parent0b4c6738868e11ba06047a406f79489cb1db8c5a (diff)
downloadllvm-8887a0f34152b63a84e759b76694d6928d01b4ee.tar.gz
llvm-8887a0f34152b63a84e759b76694d6928d01b4ee.tar.bz2
llvm-8887a0f34152b63a84e759b76694d6928d01b4ee.tar.xz
Add support for the gnueabihf environment. Patch by Sylvestre Ledru.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148434 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Triple.cpp')
-rw-r--r--lib/Support/Triple.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp
index 732fca5c13..8daedf9ffe 100644
--- a/lib/Support/Triple.cpp
+++ b/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"))