diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-04-29 17:09:14 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-04-29 17:09:14 +0000 |
commit | ce8a41d020d0b171535d77f73adb8acb3e6a881e (patch) | |
tree | 4abad23b01d940969a692b47abf87b2fe1583670 /lib/Analysis/CFRefCount.cpp | |
parent | 621edce9cd7d4e06979daf911cc306350619f33b (diff) |
Rename getMethodSummary() -> getInstanceMethodSummary().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70387 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CFRefCount.cpp')
-rw-r--r-- | lib/Analysis/CFRefCount.cpp | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp index f82fdb077d..721d80095a 100644 --- a/lib/Analysis/CFRefCount.cpp +++ b/lib/Analysis/CFRefCount.cpp @@ -730,12 +730,12 @@ public: 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); @@ -1208,9 +1208,11 @@ RetainSummaryManager::getCommonMethodSummary(ObjCMethodDecl* MD, Selector S, } 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); @@ -2145,7 +2147,9 @@ void CFRefCount::EvalObjCMessageExpr(ExplodedNodeSet<GRState>& Dst, } } - 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. |