mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 21:16:06 +00:00
add some ;'s
llvm-svn: 39537
This commit is contained in:
parent
1c31050d21
commit
b4619481e6
@ -207,7 +207,7 @@ void StmtPrinter::VisitDoStmt(DoStmt *Node) {
|
|||||||
PrintStmt(Node->getBody());
|
PrintStmt(Node->getBody());
|
||||||
Indent() << "while (";
|
Indent() << "while (";
|
||||||
PrintExpr(Node->getCond());
|
PrintExpr(Node->getCond());
|
||||||
OS << ")\n";
|
OS << ");\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
void StmtPrinter::VisitForStmt(ForStmt *Node) {
|
void StmtPrinter::VisitForStmt(ForStmt *Node) {
|
||||||
@ -231,15 +231,15 @@ void StmtPrinter::VisitGotoStmt(GotoStmt *Node) {
|
|||||||
void StmtPrinter::VisitIndirectGotoStmt(IndirectGotoStmt *Node) {
|
void StmtPrinter::VisitIndirectGotoStmt(IndirectGotoStmt *Node) {
|
||||||
Indent() << "goto *";
|
Indent() << "goto *";
|
||||||
PrintExpr(Node->getTarget());
|
PrintExpr(Node->getTarget());
|
||||||
OS << "\n";
|
OS << ";\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
void StmtPrinter::VisitContinueStmt(ContinueStmt *Node) {
|
void StmtPrinter::VisitContinueStmt(ContinueStmt *Node) {
|
||||||
Indent() << "continue\n";
|
Indent() << "continue;\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
void StmtPrinter::VisitBreakStmt(BreakStmt *Node) {
|
void StmtPrinter::VisitBreakStmt(BreakStmt *Node) {
|
||||||
Indent() << "break\n";
|
Indent() << "break;\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -249,7 +249,7 @@ void StmtPrinter::VisitReturnStmt(ReturnStmt *Node) {
|
|||||||
OS << " ";
|
OS << " ";
|
||||||
PrintExpr(Node->getRetValue());
|
PrintExpr(Node->getRetValue());
|
||||||
}
|
}
|
||||||
OS << "\n";
|
OS << ";\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user