[all-commits] [llvm/llvm-project] 701456: [darwin] add support for __isPlatformVersionAtLeas...

Alex Lorenz via All-commits all-commits at lists.llvm.org
Mon Nov 2 16:28:38 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 701456b52355c25089e1b536805164570f5def6f
      https://github.com/llvm/llvm-project/commit/701456b52355c25089e1b536805164570f5def6f
  Author: Alex Lorenz <arphaman at gmail.com>
  Date:   2020-11-02 (Mon, 02 Nov 2020)

  Changed paths:
    M clang/lib/CodeGen/CGExprScalar.cpp
    M clang/lib/CodeGen/CGObjC.cpp
    M clang/lib/CodeGen/CodeGenFunction.h
    M clang/lib/CodeGen/CodeGenModule.h
    M clang/test/CodeGenObjC/availability-cf-link-guard.m
    M clang/test/CodeGenObjC/availability-check.m
    M compiler-rt/lib/builtins/os_version_check.c
    A compiler-rt/test/builtins/TestCases/Darwin/platform_version_check_test.c

  Log Message:
  -----------
  [darwin] add support for __isPlatformVersionAtLeast check for if (@available)

The __isPlatformVersionAtLeast routine is an implementation of `if (@available)` check
that uses the _availability_version_check API on Darwin that's supported on
macOS 10.15, iOS 13, tvOS 13 and watchOS 6.

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




More information about the All-commits mailing list