diff options
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 d543b76..18ef64a 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. /// |