diff options
author | Bob Wilson <bob.wilson@apple.com> | 2012-09-29 23:52:58 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2012-09-29 23:52:58 +0000 |
commit | f2f3ce54fc1235bec2d0d0b0ef3b53bdff6d9655 (patch) | |
tree | 9340748524d91f325a0718836c423eb1bb6174e8 /include/clang/Basic/ObjCRuntime.h | |
parent | cfaab00963234237b46b52996e9d72b20540e97f (diff) |
Add Clang support for iOS6.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164907 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/ObjCRuntime.h')
-rw-r--r-- | include/clang/Basic/ObjCRuntime.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/include/clang/Basic/ObjCRuntime.h b/include/clang/Basic/ObjCRuntime.h index 2ca421bb57..d543b76715 100644 --- a/include/clang/Basic/ObjCRuntime.h +++ b/include/clang/Basic/ObjCRuntime.h @@ -157,6 +157,19 @@ public: llvm_unreachable("bad kind"); } + /// \brief Does this runtime supports optimized setter entrypoints? + bool hasOptimizedSetter() const { + switch (getKind()) { + case MacOSX: + return getVersion() >= VersionTuple(10, 8); + case iOS: + return (getVersion() >= VersionTuple(6)); + + default: + return false; + } + } + /// Does this runtime allow the use of __weak? bool allowsWeak() const { return hasNativeWeak(); @@ -177,7 +190,7 @@ public: switch (getKind()) { case FragileMacOSX: return false; case MacOSX: return getVersion() >= VersionTuple(10, 8); - case iOS: return false; + case iOS: return getVersion() >= VersionTuple(6); // This is really a lie, because some implementations and versions // of the runtime do not support ARC. Probably -fgnu-runtime |