summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGObjCMac.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-01-09 17:18:27 +0000
committerDouglas Gregor <dgregor@apple.com>2009-01-09 17:18:27 +0000
commitffca3a21f10173ff7fa093fe54b799279e5f960f (patch)
tree5effae47663b04d346553051081f65d66c8792dd /clang/lib/CodeGen/CGObjCMac.cpp
parent93215eca9b4dbbb2554a0a4587c7ddc183fb2c3c (diff)
downloadbcm5719-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/CodeGen/CGObjCMac.cpp')
-rw-r--r--clang/lib/CodeGen/CGObjCMac.cpp2
1 files changed, 1 insertions, 1 deletions
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 += ' ';
OpenPOWER on IntegriCloud