RetainSummary* getSummary(FunctionDecl* FD);
- RetainSummary* getMethodSummary(ObjCMessageExpr* ME, ObjCInterfaceDecl* ID) {
- return getMethodSummary(ME->getSelector(), ME->getClassName(),
+ RetainSummary* getInstanceMethodSummary(ObjCMessageExpr* ME, ObjCInterfaceDecl* ID) {
+ return getInstanceMethodSummary(ME->getSelector(), ME->getClassName(),
ID, ME->getMethodDecl(), ME->getType());
}
- RetainSummary* getMethodSummary(Selector S, IdentifierInfo *ClsName,
+ RetainSummary* getInstanceMethodSummary(Selector S, IdentifierInfo *ClsName,
ObjCInterfaceDecl* ID,
ObjCMethodDecl *MD, QualType RetTy);
}
RetainSummary*
-RetainSummaryManager::getMethodSummary(Selector S, IdentifierInfo *ClsName,
- ObjCInterfaceDecl* ID,
- ObjCMethodDecl *MD, QualType RetTy) {
+RetainSummaryManager::getInstanceMethodSummary(Selector S,
+ IdentifierInfo *ClsName,
+ ObjCInterfaceDecl* ID,
+ ObjCMethodDecl *MD,
+ QualType RetTy) {
// Look up a summary in our summary cache.
ObjCMethodSummariesTy::iterator I = ObjCMethodSummaries.find(ID, ClsName, S);
}
}
- Summ = Summaries.getMethodSummary(ME, ID);
+ // FIXME: The receiver could be a reference to a class, meaning that
+ // we should use the class method.
+ Summ = Summaries.getInstanceMethodSummary(ME, ID);
// Special-case: are we sending a mesage to "self"?
// This is a hack. When we have full-IP this should be removed.