Add version of getMethodSummary() that can be used to query the summary for the

method currently being analyzed.

llvm-svn: 70388
This commit is contained in:
Ted Kremenek 2009-04-29 17:17:48 +00:00
parent 387243067a
commit 99fe1695c7
1 changed files with 14 additions and 0 deletions

View File

@ -748,6 +748,20 @@ public:
ME->getClassInfo().first,
ME->getMethodDecl(), ME->getType());
}
/// getMethodSummary - This version of getMethodSummary is used to query
/// the summary for the current method being analyzed.
RetainSummary *getMethodSummary(ObjCMethodDecl *MD) {
Selector S = MD->getSelector();
ObjCInterfaceDecl *ID = MD->getClassInterface();
IdentifierInfo *ClsName = ID->getIdentifier();
QualType ResultTy = MD->getResultType();
if (MD->isInstanceMethod())
return getInstanceMethodSummary(S, ClsName, ID, MD, ResultTy);
else
return getClassMethodSummary(S, ClsName, ID, MD, ResultTy);
}
RetainSummary* getCommonMethodSummary(ObjCMethodDecl* MD, Selector S,
QualType RetTy);