aboutsummaryrefslogtreecommitdiff
path: root/AST/StmtPrinter.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2007-08-22 15:14:15 +0000
committerAnders Carlsson <andersca@mac.com>2007-08-22 15:14:15 +0000
commitf9bcf01f82dfd2688f81e57bcc6300c9b13c51a6 (patch)
tree88375a003a20043c1116cb4344c93209aaacab5f /AST/StmtPrinter.cpp
parent697e15f2a028f8997cccb24ecd05099988cfb1a9 (diff)
Parse @encode expressions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41273 91177308-0d34-0410-b5e6-96231b3b80d8
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
//===----------------------------------------------------------------------===//