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
This commit is contained in:
Chandler Carruth 2012-01-10 19:46:00 +00:00
parent ea7ad3b3e6
commit fd553c2cb5
2 changed files with 5 additions and 1 deletions

View File

@ -105,7 +105,8 @@ public:
GNU,
GNUEABI,
EABI,
MachO
MachO,
ANDROIDEABI
};
private:

View File

@ -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;
}