diff options
| author | Douglas Gregor <dgregor@apple.com> | 2009-01-09 17:18:27 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2009-01-09 17:18:27 +0000 |
| commit | ffca3a21f10173ff7fa093fe54b799279e5f960f (patch) | |
| tree | 5effae47663b04d346553051081f65d66c8792dd /clang/lib/Sema/SemaDeclObjC.cpp | |
| parent | 93215eca9b4dbbb2554a0a4587c7ddc183fb2c3c (diff) | |
| download | bcm5719-llvm-ffca3a21f10173ff7fa093fe54b799279e5f960f.tar.gz bcm5719-llvm-ffca3a21f10173ff7fa093fe54b799279e5f960f.zip | |
Provide a new kind of iterator, the specific_decl_iterator, that
filters the decls seen by decl_iterator with two criteria: the dynamic
type of the declaration and a run-time predicate described by a member
function. This simplifies EnumDecl, RecordDecl, and ObjCContainerDecl
considerably. It has no measurable performance impact.
llvm-svn: 61994
Diffstat (limited to 'clang/lib/Sema/SemaDeclObjC.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaDeclObjC.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp index 2599561e312..f39b84c2701 100644 --- a/clang/lib/Sema/SemaDeclObjC.cpp +++ b/clang/lib/Sema/SemaDeclObjC.cpp @@ -30,7 +30,7 @@ void Sema::ObjCActOnStartOfMethodDef(Scope *FnBodyScope, DeclTy *D) { return; // Allow the rest of sema to find private method decl implementations. - if (MDecl->isInstance()) + if (MDecl->isInstanceMethod()) AddInstanceMethodToGlobalPool(MDecl); else AddFactoryMethodToGlobalPool(MDecl); @@ -1172,7 +1172,7 @@ void Sema::ActOnAtEnd(SourceLocation AtEndLoc, DeclTy *classDecl, cast_or_null<ObjCMethodDecl>(static_cast<Decl*>(allMethods[i])); if (!Method) continue; // Already issued a diagnostic. - if (Method->isInstance()) { + if (Method->isInstanceMethod()) { /// Check for instance method of the same name with incompatible types const ObjCMethodDecl *&PrevMethod = InsMap[Method->getSelector()]; bool match = PrevMethod ? MatchTwoMethodDeclarations(Method, PrevMethod) |

