From 8887a0f34152b63a84e759b76694d6928d01b4ee Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 18 Jan 2012 23:35:29 +0000 Subject: 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 --- lib/Support/Triple.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/Support/Triple.cpp') 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")) -- cgit v1.2.3