]> granicus.if.org Git - clang/commitdiff
Small compatibility fix for -print-decl-contexts.
authorEli Friedman <eli.friedman@gmail.com>
Tue, 8 Dec 2009 06:22:37 +0000 (06:22 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Tue, 8 Dec 2009 06:22:37 +0000 (06:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90838 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/ASTConsumers.cpp

index e90e7fcf7e77ade2ad85b1d72b1c2aec5f99b654..f1a666646ff939fd83ff07f460db34623d17aa86 100644 (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");