Small compatibility fix for -print-decl-contexts.

llvm-svn: 90838
This commit is contained in:
Eli Friedman 2009-12-08 06:22:37 +00:00
parent 6425a23c8c
commit 897bc03305
1 changed files with 5 additions and 0 deletions

View File

@ -403,6 +403,11 @@ void DeclContextPrinter::PrintDeclContext(const DeclContext* DC,
Out << "<objc property> " << OPD->getNameAsString() << "\n";
break;
}
case Decl::FunctionTemplate: {
FunctionTemplateDecl* FTD = cast<FunctionTemplateDecl>(*I);
Out << "<function template> " << FTD->getNameAsString() << "\n";
break;
}
default:
Out << "DeclKind: " << DK << '"' << I->getDeclKindName() << "\"\n";
assert(0 && "decl unhandled");