Add a missing case for DeclContext printer.

llvm-svn: 93973
This commit is contained in:
Zhongxing Xu 2010-01-20 03:21:28 +00:00
parent 3f3e2cd820
commit 00c6046a81
1 changed files with 5 additions and 0 deletions

View File

@ -421,6 +421,11 @@ void DeclContextPrinter::PrintDeclContext(const DeclContext* DC,
Out << "<namespace alias> " << NAD->getNameAsString() << "\n";
break;
}
case Decl::ClassTemplate: {
ClassTemplateDecl *CTD = cast<ClassTemplateDecl>(*I);
Out << "<class template> " << CTD->getNameAsString() << '\n';
break;
}
default:
Out << "DeclKind: " << DK << '"' << I->getDeclKindName() << "\"\n";
assert(0 && "decl unhandled");