diff --git a/Driver/ASTConsumers.cpp b/Driver/ASTConsumers.cpp index 17763f63bd..5bafd0928b 100644 --- a/Driver/ASTConsumers.cpp +++ b/Driver/ASTConsumers.cpp @@ -586,9 +586,15 @@ void DeclContextPrinter::PrintDeclContext(const DeclContext* DC, Out << ND->getNameAsString(); break; } - case Decl::Enum: - Out << "[enum]"; + case Decl::Enum: { + EnumDecl* ED = EnumDecl::castFromDeclContext(DC); + if (ED->isDefinition()) + Out << "[enum] "; + else + Out << " "; + Out << ED->getNameAsString(); break; + } case Decl::Record: { RecordDecl* RD = RecordDecl::castFromDeclContext(DC); if (RD->isDefinition())