Added support for "drain".

llvm-svn: 50831
This commit is contained in:
Ted Kremenek 2008-05-07 21:17:39 +00:00
parent 8983f17ba0
commit bcdb46830b
1 changed files with 4 additions and 0 deletions

View File

@ -726,6 +726,10 @@ void RetainSummaryManager::InitializeMethSummaries() {
// Create the "release" selector.
Summ = getPersistentSummary(E, isGCEnabled() ? DoNothing : DecRef);
ObjCMethSummaries[ GetNullarySelector("release", Ctx) ] = Summ;
// Create the "drain" selector.
Summ = getPersistentSummary(E, isGCEnabled() ? DoNothing : DecRef);
ObjCMethSummaries[ GetNullarySelector("drain", Ctx) ] = Summ;
// Create the "autorelease" selector.
Summ = getPersistentSummary(E, isGCEnabled() ? DoNothing : StopTracking);