summaryrefslogtreecommitdiff
path: root/lib/builtins/os_version_check.c
AgeCommit message (Collapse)Author
2017-03-15[compiler-rt][builtins] Ignore the deprecated warning forAlex Lorenz
CFPropertyListCreateFromXMLData that's used in __isOSVersionAtLeast I forgot to add the pragmas in r297760. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@297827 91177308-0d34-0410-b5e6-96231b3b80d8
2017-03-14[compiler-rt][builtins] __isOSVersionAtLeast should load CoreFoundationAlex Lorenz
symbols dynamically The CoreFoundation symbols uses by __isOSVersionAtLeast should be loaded at runtime to ensure that the programs that don't use @available won't have to be linked to CoreFoundation. The Clang frontend IRGen library will need to emit a CoreFoundation symbol when @available is used to ensure that programs that actually use @available are linked to CoreFoundation. rdar://31039554 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@297760 91177308-0d34-0410-b5e6-96231b3b80d8
2017-03-13[compiler-rt][builtins] Ignore the deprecated warning forAlex Lorenz
CFPropertyListCreateFromXMLData that's used in __isOSVersionAtLeast git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@297613 91177308-0d34-0410-b5e6-96231b3b80d8
2017-03-10Silence a pedantic warning, NFCErik Pilkington
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@297515 91177308-0d34-0410-b5e6-96231b3b80d8
2017-03-09Reapply r297382: "[compiler-rt][builtins] Add __isOSVersionAtLeast()"Erik Pilkington
Looks like the problem was a case-insensitive include of dispatch/dispatch.h. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@297392 91177308-0d34-0410-b5e6-96231b3b80d8
2017-03-09Revert "[compiler-rt][builtins] Add __isOSVersionAtLeast()"Erik Pilkington
This reverts r297382, it was causing build failures. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@297388 91177308-0d34-0410-b5e6-96231b3b80d8
2017-03-09[compiler-rt][builtins] Add __isOSVersionAtLeast()Erik Pilkington
This predicate compares the host's marketing OS version to one passed as argument. Currently, only darwin targets are supported. This is done by parsing the SystemVersion.plist file. Also added in this patch is some lit testing infrastructure for builtins, which previously had none. This part of the patch was written by Alex Lorenz (with some minor modifications). This patch is part of a feature I proposed here: http://lists.llvm.org/pipermail/cfe-dev/2016-July/049851.html Differential revision: https://reviews.llvm.org/D30136 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@297382 91177308-0d34-0410-b5e6-96231b3b80d8