diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-10-15 00:42:39 +0000 | 
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-10-15 00:42:39 +0000 | 
| commit | 88e1b97f16c752ca889f24cc7e2a795b47c64696 (patch) | |
| tree | 0da3ab7033a52adeb9cfb498ec7736b0fb2ef277 /clang/lib/AST/StmtDumper.cpp | |
| parent | 267c4fe1b5b290c937ec0ff84908dcd3fd5c8709 (diff) | |
| download | bcm5719-llvm-88e1b97f16c752ca889f24cc7e2a795b47c64696.tar.gz bcm5719-llvm-88e1b97f16c752ca889f24cc7e2a795b47c64696.zip  | |
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
Diffstat (limited to 'clang/lib/AST/StmtDumper.cpp')
| -rw-r--r-- | clang/lib/AST/StmtDumper.cpp | 8 | 
1 files changed, 2 insertions, 6 deletions
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;  | 

