diff options
author | John McCall <rjmccall@apple.com> | 2012-06-20 21:58:02 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2012-06-20 21:58:02 +0000 |
commit | 0b92fcb1353d2d8b31b6c485e6caa14568aca43b (patch) | |
tree | 3026711a737a0db3164592f467792fbb4a4aea01 /lib/AST/DeclBase.cpp | |
parent | a6366f5c7e92466ebad0042afa55c2e5952ebe61 (diff) |
Introduce ObjCRuntime::hasWeakClassImport() and use it in the appropriate
places. I've turned this off for the GNU runtimes --- I don't know if
they support weak class import, but it's easy enough for them to opt in.
Also tweak a comment per review by Jordan.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158860 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclBase.cpp')
-rw-r--r-- | lib/AST/DeclBase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/DeclBase.cpp b/lib/AST/DeclBase.cpp index 7d72093700..574f779b86 100644 --- a/lib/AST/DeclBase.cpp +++ b/lib/AST/DeclBase.cpp @@ -430,7 +430,7 @@ bool Decl::canBeWeakImported(bool &IsDefinition) const { // Objective-C classes, if this is the non-fragile runtime. } else if (isa<ObjCInterfaceDecl>(this) && - getASTContext().getLangOpts().ObjCRuntime.isNonFragile()) { + getASTContext().getLangOpts().ObjCRuntime.hasWeakClassImport()) { return true; // Nothing else. |