[llvm-commits] [llvm] r147871 - in /llvm/trunk: include/llvm/ADT/Triple.h lib/Support/Triple.cpp
Chandler Carruth
chandlerc at gmail.com
Tue Jan 10 11:46:00 PST 2012
Author: chandlerc
Date: Tue Jan 10 13:46:00 2012
New Revision: 147871
URL: http://llvm.org/viewvc/llvm-project?rev=147871&view=rev
Log:
Teach the triple library about the androideabi environment.
Patch by Evgeniy Stepanov.
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=147871&r1=147870&r2=147871&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/Triple.h (original)
+++ llvm/trunk/include/llvm/ADT/Triple.h Tue Jan 10 13:46:00 2012
@@ -105,7 +105,8 @@
GNU,
GNUEABI,
EABI,
- MachO
+ MachO,
+ ANDROIDEABI
};
private:
Modified: llvm/trunk/lib/Support/Triple.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Triple.cpp?rev=147871&r1=147870&r2=147871&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Triple.cpp (original)
+++ llvm/trunk/lib/Support/Triple.cpp Tue Jan 10 13:46:00 2012
@@ -125,6 +125,7 @@
case GNUEABI: return "gnueabi";
case EABI: return "eabi";
case MachO: return "macho";
+ case ANDROIDEABI: return "androideabi";
}
return "<invalid>";
@@ -387,6 +388,8 @@
return GNU;
else if (EnvironmentName.startswith("macho"))
return MachO;
+ else if (EnvironmentName.startswith("androideabi"))
+ return ANDROIDEABI;
else
return UnknownEnvironment;
}
More information about the llvm-commits
mailing list