diff options
author | David Chisnall <csdavec@swan.ac.uk> | 2012-12-17 18:54:24 +0000 |
---|---|---|
committer | David Chisnall <csdavec@swan.ac.uk> | 2012-12-17 18:54:24 +0000 |
commit | d397cfef01d49a41554309d67ea26340c39e1e94 (patch) | |
tree | e947e85c13062aa089892acb6df941caaceadf7c /include/clang/Basic/ObjCRuntime.h | |
parent | e315cb3b30a0461ae501f8942f9d012bbeee3f90 (diff) | |
download | clang-d397cfef01d49a41554309d67ea26340c39e1e94.tar.gz |
Reapply r170344, this time without forgetting to commit the header changes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170354 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/ObjCRuntime.h')
-rw-r--r-- | include/clang/Basic/ObjCRuntime.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/include/clang/Basic/ObjCRuntime.h b/include/clang/Basic/ObjCRuntime.h index d543b76715..18ef64a315 100644 --- a/include/clang/Basic/ObjCRuntime.h +++ b/include/clang/Basic/ObjCRuntime.h @@ -104,7 +104,7 @@ public: return true; } - /// \brief Is this runtime basically of the GNUstep family of runtimes? + /// \brief Is this runtime basically of the GNU family of runtimes? bool isGNUFamily() const { switch (getKind()) { case FragileMacOSX: @@ -164,6 +164,8 @@ public: return getVersion() >= VersionTuple(10, 8); case iOS: return (getVersion() >= VersionTuple(6)); + case GNUstep: + return getVersion() >= VersionTuple(1, 7); default: return false; @@ -272,6 +274,18 @@ public: llvm_unreachable("bad kind"); } + bool hasAtomicCopyHelper() const { + switch (getKind()) { + case FragileMacOSX: + case MacOSX: + case iOS: + return true; + case GNUstep: + return getVersion() >= VersionTuple(1, 7); + default: return false; + } + } + /// \brief Try to parse an Objective-C runtime specification from the given /// string. /// |