[PATCH] D90367: [darwin] add support for __isPlatformVersionAtLeast check for if (@available)
Alex Lorenz via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 28 23:03:01 PDT 2020
arphaman created this revision.
arphaman added reviewers: thakis, dexonsmith.
Herald added subscribers: Sanitizers, ributzka, dmgreen, jkorous.
Herald added projects: clang, Sanitizers.
arphaman requested review of this revision.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D90367
Files:
clang/lib/CodeGen/CGExprScalar.cpp
clang/lib/CodeGen/CGObjC.cpp
clang/lib/CodeGen/CodeGenFunction.h
clang/lib/CodeGen/CodeGenModule.h
clang/test/CodeGenObjC/availability-cf-link-guard.m
clang/test/CodeGenObjC/availability-check.m
compiler-rt/lib/builtins/os_version_check.c
compiler-rt/test/builtins/TestCases/Darwin/platform_version_check_test.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90367.301516.patch
Type: text/x-patch
Size: 15718 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201029/af53ee6c/attachment-0001.bin>
More information about the cfe-commits
mailing list