mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #33148 from brentdax/runtime-revolution
Adjust to simulator compiler-rt change
This commit is contained in:
@@ -123,23 +123,6 @@ DarwinPlatformKind swift::getDarwinPlatformKind(const llvm::Triple &triple) {
|
||||
llvm_unreachable("Unsupported Darwin platform");
|
||||
}
|
||||
|
||||
DarwinPlatformKind swift::getNonSimulatorPlatform(DarwinPlatformKind platform) {
|
||||
switch (platform) {
|
||||
case DarwinPlatformKind::MacOS:
|
||||
return DarwinPlatformKind::MacOS;
|
||||
case DarwinPlatformKind::IPhoneOS:
|
||||
case DarwinPlatformKind::IPhoneOSSimulator:
|
||||
return DarwinPlatformKind::IPhoneOS;
|
||||
case DarwinPlatformKind::TvOS:
|
||||
case DarwinPlatformKind::TvOSSimulator:
|
||||
return DarwinPlatformKind::TvOS;
|
||||
case DarwinPlatformKind::WatchOS:
|
||||
case DarwinPlatformKind::WatchOSSimulator:
|
||||
return DarwinPlatformKind::WatchOS;
|
||||
}
|
||||
llvm_unreachable("Unsupported Darwin platform");
|
||||
}
|
||||
|
||||
static StringRef getPlatformNameForDarwin(const DarwinPlatformKind platform) {
|
||||
switch (platform) {
|
||||
case DarwinPlatformKind::MacOS:
|
||||
|
||||
Reference in New Issue
Block a user