[Triple] support macOS 11 os version number
authorAlex Lorenz <arphaman@gmail.com>
Mon, 22 Jun 2020 23:32:35 +0000 (16:32 -0700)
committerAlex Lorenz <arphaman@gmail.com>
Tue, 23 Jun 2020 06:03:47 +0000 (23:03 -0700)
commit1c4a42a4d88eeca8de47d615a23fc654a39abdb7
treec6f8769a31331c87609ce4c9bc08fe33439233a0
parent987fac79c9a951806cbda6b178b05fcb5145fde8
[Triple] support macOS 11 os version number

macOS goes to 11! This commit adds support for the new version number by ensuring
that existing version comparison routines, and the 'darwin' OS identifier
understands the new numbering scheme. It also adds a new utility method
'getCanonicalVersionForOS', which lets users translate some uses of
macOS 10.16 into macOS 11. This utility method will be used in upcoming
clang and swift commits.

Differential Revision: https://reviews.llvm.org/D82337
llvm/include/llvm/ADT/Triple.h
llvm/lib/Support/Triple.cpp
llvm/unittests/ADT/TripleTest.cpp