Fix regression with ObjC method definitions and -ast-print

llvm-svn: 44088
This commit is contained in:
Steve Naroff 2007-11-13 23:48:03 +00:00
parent bc92fd7542
commit 971d2f1242
1 changed files with 3 additions and 0 deletions

View File

@ -267,6 +267,9 @@ namespace {
FD->getBody()->dumpPretty();
fprintf(stderr, "\n");
}
} else if (isa<ObjcMethodDecl>(D)) {
// Do nothing, methods definitions are printed in
// PrintObjcImplementationDecl.
} else if (TypedefDecl *TD = dyn_cast<TypedefDecl>(D)) {
PrintTypeDefDecl(TD);
} else if (ObjcInterfaceDecl *OID = dyn_cast<ObjcInterfaceDecl>(D)) {