[llvm-commits] [llvm] r148434 - in /llvm/trunk: include/llvm/ADT/Triple.h lib/Support/Triple.cpp
Rafael Espindola
rafael.espindola at gmail.com
Wed Jan 18 15:35:29 PST 2012
Author: rafael
Date: Wed Jan 18 17:35:29 2012
New Revision: 148434
URL: http://llvm.org/viewvc/llvm-project?rev=148434&view=rev
Log:
Add support for the gnueabihf environment. Patch by Sylvestre Ledru.
Modified:
llvm/trunk/include/llvm/ADT/Triple.h
llvm/trunk/lib/Support/Triple.cpp
Modified: llvm/trunk/include/llvm/ADT/Triple.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/Triple.h?rev=148434&r1=148433&r2=148434&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/Triple.h (original)
+++ llvm/trunk/include/llvm/ADT/Triple.h Wed Jan 18 17:35:29 2012
@@ -104,6 +104,7 @@
GNU,
GNUEABI,
+ GNUEABIHF,
EABI,
MachO,
ANDROIDEABI
Modified: llvm/trunk/lib/Support/Triple.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Triple.cpp?rev=148434&r1=148433&r2=148434&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Triple.cpp (original)
+++ llvm/trunk/lib/Support/Triple.cpp Wed Jan 18 17:35:29 2012
@@ -122,6 +122,7 @@
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::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"))
More information about the llvm-commits
mailing list