diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-05-30 00:56:08 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-05-30 00:56:08 +0000 |
commit | 64f650062fbe5e2bc6fb6d341c46a2ec0284694f (patch) | |
tree | 381bc2fbe457ddb002350348e4abe8f035444f47 /lib/AST/StmtPrinter.cpp | |
parent | d12ef8d142868889867f9dd968b5f3ea02d463c1 (diff) |
Clean up printing for Objective-C, designated initializers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72602 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/StmtPrinter.cpp')
-rw-r--r-- | lib/AST/StmtPrinter.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/AST/StmtPrinter.cpp b/lib/AST/StmtPrinter.cpp index 7fe1524c58..a427147472 100644 --- a/lib/AST/StmtPrinter.cpp +++ b/lib/AST/StmtPrinter.cpp @@ -982,6 +982,11 @@ void StmtPrinter::VisitShuffleVectorExpr(ShuffleVectorExpr *Node) { } void StmtPrinter::VisitInitListExpr(InitListExpr* Node) { + if (Node->getSyntacticForm()) { + Visit(Node->getSyntacticForm()); + return; + } + OS << "{ "; for (unsigned i = 0, e = Node->getNumInits(); i != e; ++i) { if (i) OS << ", "; |