HomePhabricator

[IR] Keep a double break between functions when printing a module

Authored by rnk on Jan 27 2020, 1:49 PM.

Description

[IR] Keep a double break between functions when printing a module

This behavior appears to have changed unintentionally in
b0e979724f2679e4e6f5b824144ea89289bd6d56.

Instead of printing the leading newline in printFunction, print it when
printing a module. This ensures that OS << *Func starts printing
immediately on the current line, but whole modules are printed nicely.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D73505

Details

Committed
rnkJan 27 2020, 3:31 PM
Reviewer
MaskRay
Differential Revision
D73505: [IR] Keep a double break between function decls and defs
Parents
rGc7feb6b36aa8: [WinEH] Re-run stack coloring test for i686
Branches
Unknown
Tags
Unknown