Fix -ast-dump for ObjC.

llvm-svn: 42967
This commit is contained in:
Steve Naroff 2007-10-14 17:03:01 +00:00
parent 5fe658b21d
commit e7ed06e6fc
1 changed files with 6 additions and 0 deletions

View File

@ -198,8 +198,14 @@ namespace {
fprintf(stderr, "Read top-level variable decl: '%s'\n", SD->getName()); fprintf(stderr, "Read top-level variable decl: '%s'\n", SD->getName());
} else if (ObjcInterfaceDecl *OID = dyn_cast<ObjcInterfaceDecl>(D)) { } else if (ObjcInterfaceDecl *OID = dyn_cast<ObjcInterfaceDecl>(D)) {
fprintf(stderr, "Read objc interface '%s'\n", OID->getName()); fprintf(stderr, "Read objc interface '%s'\n", OID->getName());
} else if (ObjcProtocolDecl *OPD = dyn_cast<ObjcProtocolDecl>(D)) {
fprintf(stderr, "Read objc protocol '%s'\n", OPD->getName());
} else if (ObjcCategoryDecl *OCD = dyn_cast<ObjcCategoryDecl>(D)) {
fprintf(stderr, "Read objc category '%s'\n", OCD->getName());
} else if (isa<ObjcForwardProtocolDecl>(D)) { } else if (isa<ObjcForwardProtocolDecl>(D)) {
fprintf(stderr, "Read objc fwd protocol decl\n"); fprintf(stderr, "Read objc fwd protocol decl\n");
} else if (isa<ObjcClassDecl>(D)) {
fprintf(stderr, "Read objc fwd class decl\n");
} else { } else {
assert(0 && "Unknown decl type!"); assert(0 && "Unknown decl type!");
} }