From b4619481e60ae69c79db8114539d763eb5b5062d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 31 May 2007 06:00:14 +0000 Subject: [PATCH] add some ;'s llvm-svn: 39537 --- clang/AST/StmtPrinter.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/clang/AST/StmtPrinter.cpp b/clang/AST/StmtPrinter.cpp index eab37995746b..7ed761948db0 100644 --- a/clang/AST/StmtPrinter.cpp +++ b/clang/AST/StmtPrinter.cpp @@ -207,7 +207,7 @@ void StmtPrinter::VisitDoStmt(DoStmt *Node) { PrintStmt(Node->getBody()); Indent() << "while ("; PrintExpr(Node->getCond()); - OS << ")\n"; + OS << ");\n"; } void StmtPrinter::VisitForStmt(ForStmt *Node) { @@ -231,15 +231,15 @@ void StmtPrinter::VisitGotoStmt(GotoStmt *Node) { void StmtPrinter::VisitIndirectGotoStmt(IndirectGotoStmt *Node) { Indent() << "goto *"; PrintExpr(Node->getTarget()); - OS << "\n"; + OS << ";\n"; } void StmtPrinter::VisitContinueStmt(ContinueStmt *Node) { - Indent() << "continue\n"; + Indent() << "continue;\n"; } void StmtPrinter::VisitBreakStmt(BreakStmt *Node) { - Indent() << "break\n"; + Indent() << "break;\n"; } @@ -249,7 +249,7 @@ void StmtPrinter::VisitReturnStmt(ReturnStmt *Node) { OS << " "; PrintExpr(Node->getRetValue()); } - OS << "\n"; + OS << ";\n"; } //===----------------------------------------------------------------------===//