[cfe-commits] r50533 - /cfe/trunk/lib/Analysis/CFRefCount.cpp

Ted Kremenek kremenek at apple.com
Thu May 1 11:31:44 PDT 2008


Author: kremenek
Date: Thu May  1 13:31:44 2008
New Revision: 50533

URL: http://llvm.org/viewvc/llvm-project?rev=50533&view=rev
Log:
Renamed static method.

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=50533&r1=50532&r2=50533&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/CFRefCount.cpp (original)
+++ cfe/trunk/lib/Analysis/CFRefCount.cpp Thu May  1 13:31:44 2008
@@ -32,7 +32,7 @@
 // Utility functions.
 //===----------------------------------------------------------------------===//
 
-static inline Selector GetUnarySelector(const char* name, ASTContext& Ctx) {
+static inline Selector GetNullarySelector(const char* name, ASTContext& Ctx) {
   IdentifierInfo* II = &Ctx.Idents.get(name);
   return Ctx.Selectors.getSelector(0, &II);
 }
@@ -677,9 +677,9 @@
     : Summaries(Ctx, gcenabled),
       GCEnabled(gcenabled),
       LOpts(lopts),
-      RetainSelector(GetUnarySelector("retain", Ctx)),
-      ReleaseSelector(GetUnarySelector("release", Ctx)),
-      AutoreleaseSelector(GetUnarySelector("autorelease", Ctx)) {}
+      RetainSelector(GetNullarySelector("retain", Ctx)),
+      ReleaseSelector(GetNullarySelector("release", Ctx)),
+      AutoreleaseSelector(GetNullarySelector("autorelease", Ctx)) {}
   
   virtual ~CFRefCount() {
     for (LeaksTy::iterator I = Leaks.begin(), E = Leaks.end(); I!=E; ++I)





More information about the cfe-commits mailing list