[all-commits] [llvm/llvm-project] 9521c1: [IR] Keep a double break between functions when pr...

Reid Kleckner via All-commits all-commits at lists.llvm.org
Mon Jan 27 15:31:54 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 9521c18438a9f09663f3dc68aa7581371c0653c9
      https://github.com/llvm/llvm-project/commit/9521c18438a9f09663f3dc68aa7581371c0653c9
  Author: Reid Kleckner <rnk at google.com>
  Date:   2020-01-27 (Mon, 27 Jan 2020)

  Changed paths:
    M llvm/lib/IR/AsmWriter.cpp
    M llvm/test/Feature/undefined.ll

  Log Message:
  -----------
  [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




More information about the All-commits mailing list