forked from OSchip/llvm-project
Add support for the gnueabihf environment. Patch by Sylvestre Ledru.
llvm-svn: 148434
This commit is contained in:
parent
c64d3230d2
commit
f5e78fa8d1
|
@ -104,6 +104,7 @@ public:
|
|||
|
||||
GNU,
|
||||
GNUEABI,
|
||||
GNUEABIHF,
|
||||
EABI,
|
||||
MachO,
|
||||
ANDROIDEABI
|
||||
|
|
|
@ -122,6 +122,7 @@ const char *Triple::getEnvironmentTypeName(EnvironmentType Kind) {
|
|||
switch (Kind) {
|
||||
case UnknownEnvironment: return "unknown";
|
||||
case GNU: return "gnu";
|
||||
case GNUEABIHF: return "gnueabihf";
|
||||
case GNUEABI: return "gnueabi";
|
||||
case EABI: return "eabi";
|
||||
case MachO: return "macho";
|
||||
|
@ -382,6 +383,8 @@ Triple::OSType Triple::ParseOS(StringRef OSName) {
|
|||
Triple::EnvironmentType Triple::ParseEnvironment(StringRef EnvironmentName) {
|
||||
if (EnvironmentName.startswith("eabi"))
|
||||
return EABI;
|
||||
else if (EnvironmentName.startswith("gnueabihf"))
|
||||
return GNUEABIHF;
|
||||
else if (EnvironmentName.startswith("gnueabi"))
|
||||
return GNUEABI;
|
||||
else if (EnvironmentName.startswith("gnu"))
|
||||
|
|
Loading…
Reference in New Issue