mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-22 10:29:35 +00:00
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:
parent
ea7ad3b3e6
commit
fd553c2cb5
@ -105,7 +105,8 @@ public:
|
||||
GNU,
|
||||
GNUEABI,
|
||||
EABI,
|
||||
MachO
|
||||
MachO,
|
||||
ANDROIDEABI
|
||||
};
|
||||
|
||||
private:
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user