diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-10-15 22:25:12 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-10-15 22:25:12 +0000 |
commit | 55adb821e835e8db587a909bfc7cc5cafcb1d48d (patch) | |
tree | 4630d17d8cf1ea3d46974d17acd198bda881dc5a /clang/lib/Analysis/CFRefCount.cpp | |
parent | 44cd60eebec2f4c8152f58c4b16eb20c9e265119 (diff) | |
download | bcm5719-llvm-55adb821e835e8db587a909bfc7cc5cafcb1d48d.tar.gz bcm5719-llvm-55adb821e835e8db587a909bfc7cc5cafcb1d48d.zip |
retain/release checker: Use simpler utility method for creating class method summaries. No functionality change.
llvm-svn: 84210
Diffstat (limited to 'clang/lib/Analysis/CFRefCount.cpp')
-rw-r--r-- | clang/lib/Analysis/CFRefCount.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp index eb1265dda7e..2da0297e412 100644 --- a/clang/lib/Analysis/CFRefCount.cpp +++ b/clang/lib/Analysis/CFRefCount.cpp @@ -1009,7 +1009,7 @@ RetainSummary* RetainSummaryManager::getSummary(FunctionDecl* FD) { // Part of <rdar://problem/6961230>. (IOKit) // This should be addressed using a API table. ScratchArgs = AF.Add(ScratchArgs, 2, DecRef); - S = getPersistentSummary(RetEffect::MakeNoRet(), DoNothing, DoNothing); + S = getPersistentSummary(RetEffect::MakeNoRet(), DoNothing,DoNothing); } break; @@ -1432,16 +1432,14 @@ void RetainSummaryManager::InitializeClassMethodSummaries() { addNSObjectClsMethSummary(GetUnarySelector("allocWithZone", Ctx), Summ); // Create the [NSAssertionHandler currentHander] summary. - addClsMethSummary(&Ctx.Idents.get("NSAssertionHandler"), - GetNullarySelector("currentHandler", Ctx), + addClassMethSummary("NSAssertionHandler", "currentHandler", getPersistentSummary(RetEffect::MakeNotOwned(RetEffect::ObjC))); // Create the [NSAutoreleasePool addObject:] summary. ScratchArgs = AF.Add(ScratchArgs, 0, Autorelease); - addClsMethSummary(&Ctx.Idents.get("NSAutoreleasePool"), - GetUnarySelector("addObject", Ctx), - getPersistentSummary(RetEffect::MakeNoRet(), - DoNothing, Autorelease)); + addClassMethSummary("NSAutoreleasePool", "addObject", + getPersistentSummary(RetEffect::MakeNoRet(), + DoNothing, Autorelease)); // Create the summaries for [NSObject performSelector...]. We treat // these as 'stop tracking' for the arguments because they are often |