HomePhabricator

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

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

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

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

(cherry picked from commit 9521c18438a9f09663f3dc68aa7581371c0653c9)

Details

Committed
rnkJan 27 2020, 3:34 PM
Reviewer
MaskRay
Differential Revision
D73505: [IR] Keep a double break between function decls and defs
Parents
rG72882ca30d87: [RISCV] Support ABI checking with per function target-features
Branches
Unknown
Tags
Unknown