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

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


  Branch: refs/heads/release/10.x
  Home:   https://github.com/llvm/llvm-project
  Commit: c23212a438f6ff20bf1d98e5ca23c5cd28591ce3
      https://github.com/llvm/llvm-project/commit/c23212a438f6ff20bf1d98e5ca23c5cd28591ce3
  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

(cherry picked from commit 9521c18438a9f09663f3dc68aa7581371c0653c9)




More information about the All-commits mailing list