summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/CFRefCount.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-05-01 18:31:44 +0000
committerTed Kremenek <kremenek@apple.com>2008-05-01 18:31:44 +0000
commitf0b0f2edfe10c829389f75d9927aa8ab22cc6abc (patch)
treebe81630a783a2055177aa42b3ecc7b3f61df2b0e /clang/lib/Analysis/CFRefCount.cpp
parentf303bdabdf52d211724eed3de58bca7cc1ed8d41 (diff)
downloadbcm5719-llvm-f0b0f2edfe10c829389f75d9927aa8ab22cc6abc.tar.gz
bcm5719-llvm-f0b0f2edfe10c829389f75d9927aa8ab22cc6abc.zip
Renamed static method.
llvm-svn: 50533
Diffstat (limited to 'clang/lib/Analysis/CFRefCount.cpp')
-rw-r--r--clang/lib/Analysis/CFRefCount.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp
index 761182dac38..54009040132 100644
--- a/clang/lib/Analysis/CFRefCount.cpp
+++ b/clang/lib/Analysis/CFRefCount.cpp
@@ -32,7 +32,7 @@ using namespace clang;
// 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 @@ public:
: 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)
OpenPOWER on IntegriCloud