From: Rafael Espindola Date: Wed, 18 Jan 2012 23:35:29 +0000 (+0000) Subject: Add support for the gnueabihf environment. Patch by Sylvestre Ledru. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;ds=sidebyside;h=8887a0f34152b63a84e759b76694d6928d01b4ee;p=oota-llvm.git 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 --- diff --git a/include/llvm/ADT/Triple.h b/include/llvm/ADT/Triple.h index 772f339a34b..5683f72ba38 100644 --- a/include/llvm/ADT/Triple.h +++ b/include/llvm/ADT/Triple.h @@ -104,6 +104,7 @@ public: GNU, GNUEABI, + GNUEABIHF, EABI, MachO, ANDROIDEABI diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp index 732fca5c133..8daedf9ffe2 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"))