[all-commits] [llvm/llvm-project] ba6b1b: [Darwin] Improve runtime OS version checks

Julian Lettner via All-commits all-commits at lists.llvm.org
Wed Jun 3 13:44:38 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ba6b1b4353e33a7a36bcbad1d1c1157826197fd2
      https://github.com/llvm/llvm-project/commit/ba6b1b4353e33a7a36bcbad1d1c1157826197fd2
  Author: Julian Lettner <julian.lettner at apple.com>
  Date:   2020-06-03 (Wed, 03 Jun 2020)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp
    M compiler-rt/lib/sanitizer_common/sanitizer_mac.h
    M compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_mac.cpp
    M compiler-rt/lib/tsan/rtl/tsan_platform_mac.cpp

  Log Message:
  -----------
  [Darwin] Improve runtime OS version checks

Use a struct to represent numerical versions instead of encoding release
names in an enumeration. This avoids the need to extend the enumeration
every time there is a new release.

Rename `GetMacosVersion() -> GetMacosAlignedVersion()` to better reflect
how this is used on non-MacOS platforms.

Reviewed By: delcypher

Differential Revision: https://reviews.llvm.org/D79970




More information about the All-commits mailing list