[cfe-commits] r52668 - /cfe/trunk/lib/Analysis/CFRefCount.cpp
Ted Kremenek
kremenek at apple.com
Mon Jun 23 20:56:45 PDT 2008
Author: kremenek
Date: Mon Jun 23 22:56:45 2008
New Revision: 52668
URL: http://llvm.org/viewvc/llvm-project?rev=52668&view=rev
Log:
Remove unneeded method arguments.
Modified:
cfe/trunk/lib/Analysis/CFRefCount.cpp
Modified: cfe/trunk/lib/Analysis/CFRefCount.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CFRefCount.cpp?rev=52668&r1=52667&r2=52668&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/CFRefCount.cpp (original)
+++ cfe/trunk/lib/Analysis/CFRefCount.cpp Mon Jun 23 22:56:45 2008
@@ -337,12 +337,7 @@
}
};
-#if 0
- typedef llvm::DenseMap<Selector, RetainSummary*>
- ObjCMethodSummariesTy;
-#else
typedef ObjCSummaryCache ObjCMethodSummariesTy;
-#endif
//==-----------------------------------------------------------------==//
// Data.
@@ -435,8 +430,7 @@
~RetainSummaryManager();
- RetainSummary* getSummary(FunctionDecl* FD, ASTContext& Ctx);
-
+ RetainSummary* getSummary(FunctionDecl* FD);
RetainSummary* getMethodSummary(ObjCMessageExpr* ME);
RetainSummary* getClassMethodSummary(IdentifierInfo* ClsName, Selector S);
@@ -520,8 +514,7 @@
// Summary creation for functions (largely uses of Core Foundation).
//===----------------------------------------------------------------------===//
-RetainSummary* RetainSummaryManager::getSummary(FunctionDecl* FD,
- ASTContext& Ctx) {
+RetainSummary* RetainSummaryManager::getSummary(FunctionDecl* FD) {
SourceLocation Loc = FD->getLocation();
@@ -1375,7 +1368,7 @@
if (isa<lval::FuncVal>(L)) {
lval::FuncVal FV = cast<lval::FuncVal>(L);
FunctionDecl* FD = FV.getDecl();
- Summ = Summaries.getSummary(FD, Eng.getContext());
+ Summ = Summaries.getSummary(FD);
}
EvalSummary(Dst, Eng, Builder, CE, 0, Summ,
More information about the cfe-commits
mailing list