summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/DeclObjC.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2008-05-07 20:53:44 +0000
committerFariborz Jahanian <fjahanian@apple.com>2008-05-07 20:53:44 +0000
commit8983f17ba029d247ef1f6843cba2ca4ef4c15e6e (patch)
tree8cbab46fcff4b6187e9d59deb12758c43beef98f /clang/lib/AST/DeclObjC.cpp
parentf958ec50c099d48e6e53f8b1e31368f1d3517f42 (diff)
downloadbcm5719-llvm-8983f17ba029d247ef1f6843cba2ca4ef4c15e6e.tar.gz
bcm5719-llvm-8983f17ba029d247ef1f6843cba2ca4ef4c15e6e.zip
Synthesized getter/setter method declarations need not have
an implementation. This fixes couple of failing prperty tests caused by my previous patch. llvm-svn: 50830
Diffstat (limited to 'clang/lib/AST/DeclObjC.cpp')
-rw-r--r--clang/lib/AST/DeclObjC.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/AST/DeclObjC.cpp b/clang/lib/AST/DeclObjC.cpp
index 3c89a6aa7df..cda73d2ff9c 100644
--- a/clang/lib/AST/DeclObjC.cpp
+++ b/clang/lib/AST/DeclObjC.cpp
@@ -26,12 +26,13 @@ ObjCMethodDecl *ObjCMethodDecl::Create(ASTContext &C,
Decl *contextDecl,
AttributeList *M, bool isInstance,
bool isVariadic,
+ bool isSynthesized,
ImplementationControl impControl) {
void *Mem = C.getAllocator().Allocate<ObjCMethodDecl>();
return new (Mem) ObjCMethodDecl(beginLoc, endLoc,
SelInfo, T, contextDecl,
M, isInstance,
- isVariadic, impControl);
+ isVariadic, isSynthesized, impControl);
}
ObjCInterfaceDecl *ObjCInterfaceDecl::Create(ASTContext &C,
@@ -294,7 +295,7 @@ void ObjCInterfaceDecl::addPropertyMethods(
property->getLocation(),
property->getGetterName(), resultDeclType,
this, 0,
- true, false, ObjCMethodDecl::Required);
+ true, false, true, ObjCMethodDecl::Required);
property->setGetterMethodDecl(ObjCMethod);
insMethods.push_back(ObjCMethod);
}
OpenPOWER on IntegriCloud