[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:
Nathan Hawes
2020-07-08 15:47:06 -07:00
parent 9bcb54910e
commit 244dc4a768
14 changed files with 33 additions and 43 deletions

View File

@@ -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()) {