mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[AST] Rename PlatformKind::OSX to PlatformKind::macOS
Because the names are coming from a .def file used for printing too, this simplifies the printing logic as well.
This commit is contained in:
@@ -625,7 +625,7 @@ getOSAndVersionForDiagnostics(const llvm::Triple &triple) {
|
||||
// macOS triples represent their versions differently, so we have to use the
|
||||
// special accessor.
|
||||
triple.getMacOSXVersion(major, minor, micro);
|
||||
osName = swift::prettyPlatformString(PlatformKind::OSX);
|
||||
osName = swift::prettyPlatformString(PlatformKind::macOS);
|
||||
} else {
|
||||
triple.getOSVersion(major, minor, micro);
|
||||
if (triple.isWatchOS()) {
|
||||
|
||||
Reference in New Issue
Block a user