From ffca3a21f10173ff7fa093fe54b799279e5f960f Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Fri, 9 Jan 2009 17:18:27 +0000 Subject: 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 --- clang/lib/CodeGen/CGObjCMac.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CGObjCMac.cpp') diff --git a/clang/lib/CodeGen/CGObjCMac.cpp b/clang/lib/CodeGen/CGObjCMac.cpp index 873f21ebcb2..218886fec73 100644 --- a/clang/lib/CodeGen/CGObjCMac.cpp +++ b/clang/lib/CodeGen/CGObjCMac.cpp @@ -2143,7 +2143,7 @@ llvm::Constant *CGObjCMac::GetPropertyTypeString(const ObjCPropertyDecl *PD, void CGObjCMac::GetNameForMethod(const ObjCMethodDecl *D, std::string &NameOut) { // FIXME: Find the mangling GCC uses. - NameOut = (D->isInstance() ? "-" : "+"); + NameOut = (D->isInstanceMethod() ? "-" : "+"); NameOut += '['; NameOut += D->getClassInterface()->getNameAsString(); NameOut += ' '; -- cgit v1.2.3