summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2016-03-23 21:39:31 +0000
committerManman Ren <manman.ren@gmail.com>2016-03-23 21:39:31 +0000
commit15325f80af09c5f614e698b806d6bb0dd7e4237f (patch)
tree5cf4f97bf4465668961b2a8c992a8d9ec974bf54 /clang/lib
parentb584410b802362fe836cf7e0df358d25a9d50bb8 (diff)
downloadbcm5719-llvm-15325f80af09c5f614e698b806d6bb0dd7e4237f.tar.gz
bcm5719-llvm-15325f80af09c5f614e698b806d6bb0dd7e4237f.zip
ObjC: add getter/setter for class properties to global pool.
rdar://problem/25323072 llvm-svn: 264196
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Sema/SemaObjCProperty.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaObjCProperty.cpp b/clang/lib/Sema/SemaObjCProperty.cpp
index 3f8799ae9a6..322469499f1 100644
--- a/clang/lib/Sema/SemaObjCProperty.cpp
+++ b/clang/lib/Sema/SemaObjCProperty.cpp
@@ -2308,6 +2308,11 @@ void Sema::ProcessPropertyDecl(ObjCPropertyDecl *property) {
AddInstanceMethodToGlobalPool(GetterMethod);
if (SetterMethod)
AddInstanceMethodToGlobalPool(SetterMethod);
+ } else {
+ if (GetterMethod)
+ AddFactoryMethodToGlobalPool(GetterMethod);
+ if (SetterMethod)
+ AddFactoryMethodToGlobalPool(SetterMethod);
}
ObjCInterfaceDecl *CurrentClass = dyn_cast<ObjCInterfaceDecl>(CD);
OpenPOWER on IntegriCloud