From 88e1b97f16c752ca889f24cc7e2a795b47c64696 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Wed, 15 Oct 2008 00:42:39 +0000 Subject: Simplify handling of struct/union/class tags. Instead of using two sets of Decl kinds (Struct/Union/Class and CXXStruct/CXXUnion/CXXClass), use one 'Record' and one 'CXXRecord' Decl kind and make tag kind a property of TagDecl. Cleans up the code a bit and better reflects that Decl class structure. llvm-svn: 57541 --- clang/lib/AST/StmtDumper.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'clang/lib/AST/StmtDumper.cpp') diff --git a/clang/lib/AST/StmtDumper.cpp b/clang/lib/AST/StmtDumper.cpp index dd92e84e9d2..666cad62603 100644 --- a/clang/lib/AST/StmtDumper.cpp +++ b/clang/lib/AST/StmtDumper.cpp @@ -284,13 +284,9 @@ void StmtDumper::VisitDeclRefExpr(DeclRefExpr *Node) { case Decl::ParmVar: fprintf(F,"ParmVar"); break; case Decl::EnumConstant: fprintf(F,"EnumConstant"); break; case Decl::Typedef: fprintf(F,"Typedef"); break; - case Decl::Struct: fprintf(F,"Struct"); break; - case Decl::Union: fprintf(F,"Union"); break; - case Decl::Class: fprintf(F,"Class"); break; + case Decl::Record: fprintf(F,"Record"); break; case Decl::Enum: fprintf(F,"Enum"); break; - case Decl::CXXStruct: fprintf(F,"CXXStruct"); break; - case Decl::CXXUnion: fprintf(F,"CXXUnion"); break; - case Decl::CXXClass: fprintf(F,"CXXClass"); break; + case Decl::CXXRecord: fprintf(F,"CXXRecord"); break; case Decl::ObjCInterface: fprintf(F,"ObjCInterface"); break; case Decl::ObjCClass: fprintf(F,"ObjCClass"); break; default: fprintf(F,"Decl"); break; -- cgit v1.2.3