[cfe-commits] r156564 - /cfe/trunk/lib/AST/StmtDumper.cpp

Argyrios Kyrtzidis akyrtzi at gmail.com
Thu May 10 13:02:31 PDT 2012


Author: akirtzidis
Date: Thu May 10 15:02:31 2012
New Revision: 156564

URL: http://llvm.org/viewvc/llvm-project?rev=156564&view=rev
Log:
When AST-dumping the ObjCBoxedExpr node, also print out what selector it chose.

Modified:
    cfe/trunk/lib/AST/StmtDumper.cpp

Modified: cfe/trunk/lib/AST/StmtDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/StmtDumper.cpp?rev=156564&r1=156563&r2=156564&view=diff
==============================================================================
--- cfe/trunk/lib/AST/StmtDumper.cpp (original)
+++ cfe/trunk/lib/AST/StmtDumper.cpp Thu May 10 15:02:31 2012
@@ -166,6 +166,7 @@
     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::VisitObjCBoxedExpr(ObjCBoxedExpr* Node) {
+  DumpExpr(Node);
+  OS << " selector=" << Node->getBoxingMethod()->getSelector().getAsString();
+}
+
 void StmtDumper::VisitObjCAtCatchStmt(ObjCAtCatchStmt *Node) {
   DumpStmt(Node);
   if (VarDecl *CatchParam = Node->getCatchParamDecl()) {





More information about the cfe-commits mailing list