aboutsummaryrefslogtreecommitdiff
path: root/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
commitb83e02eedabb84708c0bfa71c4299fcd9ea2c074 (patch)
tree945a4587a871764d7418d3eb5453635097651629 /lib/Analysis/CFRefCount.cpp
parent3435096781465f6b8e69de4b35d9dd3a94a76468 (diff)
Renamed static method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50533 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CFRefCount.cpp')
-rw-r--r--lib/Analysis/CFRefCount.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp
index 761182dac3..5400904013 100644
--- a/lib/Analysis/CFRefCount.cpp
+++ b/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)