diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-01-18 23:35:29 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-01-18 23:35:29 +0000 |
commit | 8887a0f34152b63a84e759b76694d6928d01b4ee (patch) | |
tree | 4c2345ae3cb917c9c0e5d5edc86b931c7c80e706 /lib/Support/Triple.cpp | |
parent | 0b4c6738868e11ba06047a406f79489cb1db8c5a (diff) | |
download | external_llvm-8887a0f34152b63a84e759b76694d6928d01b4ee.zip external_llvm-8887a0f34152b63a84e759b76694d6928d01b4ee.tar.gz external_llvm-8887a0f34152b63a84e759b76694d6928d01b4ee.tar.bz2 |
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.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp index 732fca5..8daedf9 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")) |