When AST-dumping the ObjCBoxedExpr node, also print out what selector it chose.

llvm-svn: 156564
This commit is contained in:
Argyrios Kyrtzidis 2012-05-10 20:02:31 +00:00
parent bbc00939f2
commit 9dd40890e3
1 changed files with 6 additions and 0 deletions

View File

@ -166,6 +166,7 @@ namespace {
void VisitObjCAtCatchStmt(ObjCAtCatchStmt *Node);
void VisitObjCEncodeExpr(ObjCEncodeExpr *Node);
void VisitObjCMessageExpr(ObjCMessageExpr* Node);
void VisitObjCBoxedExpr(ObjCBoxedExpr* Node);
void VisitObjCSelectorExpr(ObjCSelectorExpr *Node);
void VisitObjCProtocolExpr(ObjCProtocolExpr *Node);
void VisitObjCPropertyRefExpr(ObjCPropertyRefExpr *Node);
@ -637,6 +638,11 @@ void StmtDumper::VisitObjCMessageExpr(ObjCMessageExpr* Node) {
}
}
void StmtDumper::VisitObjCBoxedExpr(ObjCBoxedExpr* Node) {
DumpExpr(Node);
OS << " selector=" << Node->getBoxingMethod()->getSelector().getAsString();
}
void StmtDumper::VisitObjCAtCatchStmt(ObjCAtCatchStmt *Node) {
DumpStmt(Node);
if (VarDecl *CatchParam = Node->getCatchParamDecl()) {