aboutsummaryrefslogtreecommitdiff
path: root/AST/StmtPrinter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'AST/StmtPrinter.cpp')
-rw-r--r--AST/StmtPrinter.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/AST/StmtPrinter.cpp b/AST/StmtPrinter.cpp
index 6b2fce874a..2c77f131d8 100644
--- a/AST/StmtPrinter.cpp
+++ b/AST/StmtPrinter.cpp
@@ -518,6 +518,11 @@ void StmtPrinter::VisitObjCStringLiteral(ObjCStringLiteral *Node) {
VisitStringLiteral(Node->getString());
}
+void StmtPrinter::VisitObjCEncodeExpr(ObjCEncodeExpr *Node) {
+ OS << "@encode(";
+ OS << Node->getEncodedType().getAsString() << ")";
+}
+
//===----------------------------------------------------------------------===//
// Stmt method implementations
//===----------------------------------------------------------------------===//