@@ -172,25 +172,25 @@ std::pair<bool, bool> LangOptions::setTarget(llvm::Triple triple) {
172
172
// Set the "os" platform condition.
173
173
if (Target.isMacOSX ())
174
174
addPlatformConditionValue (PlatformConditionKind::OS, " OSX" );
175
- else if (triple .isTvOS ())
175
+ else if (Target .isTvOS ())
176
176
addPlatformConditionValue (PlatformConditionKind::OS, " tvOS" );
177
- else if (triple .isWatchOS ())
177
+ else if (Target .isWatchOS ())
178
178
addPlatformConditionValue (PlatformConditionKind::OS, " watchOS" );
179
- else if (triple .isiOS ())
179
+ else if (Target .isiOS ())
180
180
addPlatformConditionValue (PlatformConditionKind::OS, " iOS" );
181
- else if (triple .isAndroid ())
181
+ else if (Target .isAndroid ())
182
182
addPlatformConditionValue (PlatformConditionKind::OS, " Android" );
183
- else if (triple .isOSLinux ())
183
+ else if (Target .isOSLinux ())
184
184
addPlatformConditionValue (PlatformConditionKind::OS, " Linux" );
185
- else if (triple .isOSFreeBSD ())
185
+ else if (Target .isOSFreeBSD ())
186
186
addPlatformConditionValue (PlatformConditionKind::OS, " FreeBSD" );
187
- else if (triple .isOSWindows ())
187
+ else if (Target .isOSWindows ())
188
188
addPlatformConditionValue (PlatformConditionKind::OS, " Windows" );
189
- else if (triple .isWindowsCygwinEnvironment ())
189
+ else if (Target .isWindowsCygwinEnvironment ())
190
190
addPlatformConditionValue (PlatformConditionKind::OS, " Cygwin" );
191
- else if (triple .isPS4 ())
191
+ else if (Target .isPS4 ())
192
192
addPlatformConditionValue (PlatformConditionKind::OS, " PS4" );
193
- else if (triple .isOSHaiku ())
193
+ else if (Target .isOSHaiku ())
194
194
addPlatformConditionValue (PlatformConditionKind::OS, " Haiku" );
195
195
else
196
196
UnsupportedOS = true ;
0 commit comments