File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,8 @@ class Triple {
106
106
GNU,
107
107
GNUEABI,
108
108
EABI,
109
- MachO
109
+ MachO,
110
+ ELF
110
111
};
111
112
112
113
private:
Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ const char *Triple::getEnvironmentTypeName(EnvironmentType Kind) {
128
128
case GNUEABI: return " gnueabi" ;
129
129
case EABI: return " eabi" ;
130
130
case MachO: return " macho" ;
131
+ case ELF: return " elf" ;
131
132
}
132
133
133
134
return " <invalid>" ;
@@ -388,6 +389,8 @@ Triple::OSType Triple::ParseOS(StringRef OSName) {
388
389
Triple::EnvironmentType Triple::ParseEnvironment (StringRef EnvironmentName) {
389
390
if (EnvironmentName.startswith (" eabi" ))
390
391
return EABI;
392
+ if (EnvironmentName.startswith (" elf" ))
393
+ return ELF;
391
394
else if (EnvironmentName.startswith (" gnueabi" ))
392
395
return GNUEABI;
393
396
else if (EnvironmentName.startswith (" gnu" ))
You can’t perform that action at this time.
0 commit comments