From fd553c2cb54ee01d56f5d80d70a5d52220286fcc Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Tue, 10 Jan 2012 19:46:00 +0000 Subject: [PATCH] Teach the triple library about the androideabi environment. Patch by Evgeniy Stepanov. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147871 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/Triple.h | 3 ++- lib/Support/Triple.cpp | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/llvm/ADT/Triple.h b/include/llvm/ADT/Triple.h index 4739fb5bac5..772f339a34b 100644 --- a/include/llvm/ADT/Triple.h +++ b/include/llvm/ADT/Triple.h @@ -105,7 +105,8 @@ public: GNU, GNUEABI, EABI, - MachO + MachO, + ANDROIDEABI }; private: diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp index 8f58e7029a2..732fca5c133 100644 --- a/lib/Support/Triple.cpp +++ b/lib/Support/Triple.cpp @@ -125,6 +125,7 @@ const char *Triple::getEnvironmentTypeName(EnvironmentType Kind) { case GNUEABI: return "gnueabi"; case EABI: return "eabi"; case MachO: return "macho"; + case ANDROIDEABI: return "androideabi"; } return ""; @@ -387,6 +388,8 @@ Triple::EnvironmentType Triple::ParseEnvironment(StringRef EnvironmentName) { return GNU; else if (EnvironmentName.startswith("macho")) return MachO; + else if (EnvironmentName.startswith("androideabi")) + return ANDROIDEABI; else return UnknownEnvironment; }