[cfe-commits] r90838 - /cfe/trunk/lib/Frontend/ASTConsumers.cpp
Eli Friedman
eli.friedman at gmail.com
Mon Dec 7 22:22:38 PST 2009
Author: efriedma
Date: Tue Dec 8 00:22:37 2009
New Revision: 90838
URL: http://llvm.org/viewvc/llvm-project?rev=90838&view=rev
Log:
Small compatibility fix for -print-decl-contexts.
Modified:
cfe/trunk/lib/Frontend/ASTConsumers.cpp
Modified: cfe/trunk/lib/Frontend/ASTConsumers.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/ASTConsumers.cpp?rev=90838&r1=90837&r2=90838&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/ASTConsumers.cpp (original)
+++ cfe/trunk/lib/Frontend/ASTConsumers.cpp Tue Dec 8 00:22:37 2009
@@ -403,6 +403,11 @@
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");
More information about the cfe-commits
mailing list