Skip to content

Commit 464223b

Browse files
committed
[mlir] mlir-opt: print a newline after the top-level module
A printer refactoring removed automatic newline printing in the printer of a ModuleOp. As a consequence, mlir-opt no longer printed a newline after the closing brace of a module, which made it hard to distinguish when used from command line. Print the newline character explicitly in mlir-opt.
1 parent 9249f60 commit 464223b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mlir/lib/Support/MlirOptMain.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ static LogicalResult performActions(raw_ostream &os, bool verifyDiagnostics,
5959

6060
// Print the output.
6161
module->print(os);
62+
os << '\n';
6263
return success();
6364
}
6465

0 commit comments

Comments
 (0)