[mlir] mlir-opt: print a newline after the top-level module
authorAlex Zinenko <zinenko@google.com>
Mon, 2 Mar 2020 10:40:50 +0000 (11:40 +0100)
committerAlex Zinenko <zinenko@google.com>
Mon, 2 Mar 2020 10:43:12 +0000 (11:43 +0100)
commit464223b5ac9225eb54e9e73198773f59374f2a9c
tree0511309b69eb5289eec42ca71bd62a330d6ee646
parent9249f606024beb65c9c4871d8b82aa47fe4a4f57
[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.
mlir/lib/Support/MlirOptMain.cpp