aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-01-10 19:46:00 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-01-10 19:46:00 +0000
commitfd553c2cb54ee01d56f5d80d70a5d52220286fcc (patch)
tree292778ba41e4de0905745b0521751e5912cd34c9
parentea7ad3b3e60f91a5256053b26988806f1dbfdd27 (diff)
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
-rw-r--r--include/llvm/ADT/Triple.h3
-rw-r--r--lib/Support/Triple.cpp3
2 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/ADT/Triple.h b/include/llvm/ADT/Triple.h
index 4739fb5bac..772f339a34 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 8f58e7029a..732fca5c13 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 "<invalid>";
@@ -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;
}