File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1147,15 +1147,13 @@ static Triple::OSType getOSTypeFromPlatform(MachO::PlatformType Type) {
1147
1147
case MachO::PLATFORM_IOS: return Triple::IOS;
1148
1148
case MachO::PLATFORM_TVOS: return Triple::TvOS;
1149
1149
case MachO::PLATFORM_WATCHOS: return Triple::WatchOS;
1150
- case MachO::PLATFORM_XROS: return Triple::XROS;
1151
1150
case MachO::PLATFORM_BRIDGEOS: /* silence warning */ break ;
1152
1151
case MachO::PLATFORM_DRIVERKIT:
1153
1152
return Triple::DriverKit;
1154
1153
case MachO::PLATFORM_MACCATALYST: return Triple::IOS;
1155
1154
case MachO::PLATFORM_IOSSIMULATOR: /* silence warning */ break ;
1156
1155
case MachO::PLATFORM_TVOSSIMULATOR: /* silence warning */ break ;
1157
1156
case MachO::PLATFORM_WATCHOSSIMULATOR: /* silence warning */ break ;
1158
- case MachO::PLATFORM_XROS_SIMULATOR: /* silence warning */ break ;
1159
1157
}
1160
1158
llvm_unreachable (" Invalid mach-o platform type" );
1161
1159
}
Original file line number Diff line number Diff line change @@ -1264,6 +1264,8 @@ bool Triple::getMacOSXVersion(VersionTuple &Version) const {
1264
1264
// IOS.
1265
1265
Version = VersionTuple (10 , 4 );
1266
1266
break ;
1267
+ case XROS:
1268
+ llvm_unreachable (" OSX version isn't relevant for xrOS" );
1267
1269
case DriverKit:
1268
1270
llvm_unreachable (" OSX version isn't relevant for DriverKit" );
1269
1271
}
@@ -1318,6 +1320,8 @@ VersionTuple Triple::getWatchOSVersion() const {
1318
1320
}
1319
1321
case IOS:
1320
1322
llvm_unreachable (" conflicting triple info" );
1323
+ case XROS:
1324
+ llvm_unreachable (" watchOS version isn't relevant for xrOS" );
1321
1325
case DriverKit:
1322
1326
llvm_unreachable (" DriverKit doesn't have a WatchOS version" );
1323
1327
}
You can’t perform that action at this time.
0 commit comments