[cfe-commits] r51463 - in /cfe/trunk/lib/AST: Decl.cpp StmtDumper.cpp
Steve Naroff
snaroff at apple.com
Thu May 22 17:59:14 PDT 2008
Author: snaroff
Date: Thu May 22 19:59:14 2008
New Revision: 51463
URL: http://llvm.org/viewvc/llvm-project?rev=51463&view=rev
Log:
Tweak AST dumper for ObjC ivars.
Modified:
cfe/trunk/lib/AST/Decl.cpp
cfe/trunk/lib/AST/StmtDumper.cpp
Modified: cfe/trunk/lib/AST/Decl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Decl.cpp?rev=51463&r1=51462&r2=51463&view=diff
==============================================================================
--- cfe/trunk/lib/AST/Decl.cpp (original)
+++ cfe/trunk/lib/AST/Decl.cpp Thu May 22 19:59:14 2008
@@ -65,6 +65,7 @@
case Var: return "Var";
case ParmVar: return "ParmVar";
case EnumConstant: return "EnumConstant";
+ case ObjCIvar: return "ObjCIvar";
case ObjCInterface: return "ObjCInterface";
case ObjCClass: return "ObjCClass";
case ObjCMethod: return "ObjCMethod";
Modified: cfe/trunk/lib/AST/StmtDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/StmtDumper.cpp?rev=51463&r1=51462&r2=51463&view=diff
==============================================================================
--- cfe/trunk/lib/AST/StmtDumper.cpp (original)
+++ cfe/trunk/lib/AST/StmtDumper.cpp Thu May 22 19:59:14 2008
@@ -297,10 +297,10 @@
}
void StmtDumper::VisitObjCIvarRefExpr(ObjCIvarRefExpr *Node) {
- DumpExpr(Node->getBase());
+ DumpExpr(Node);
- fprintf(F, " ObjCIvarRefExpr");
- fprintf(F, "='%s' %p", Node->getDecl()->getName(), (void*)Node->getDecl());
+ fprintf(F, " %sDecl='%s' %p", Node->getDecl()->getDeclKindName(),
+ Node->getDecl()->getName(), (void*)Node->getDecl());
}
void StmtDumper::VisitPreDefinedExpr(PreDefinedExpr *Node) {
More information about the cfe-commits
mailing list