[all-commits] [llvm/llvm-project] ea23c3: [llvm-profdata] Allow omission of -o for --text ou...

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Jun 21 12:02:16 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ea23c38d0605514f68e33d319a6bdd858381257a
      https://github.com/llvm/llvm-project/commit/ea23c38d0605514f68e33d319a6bdd858381257a
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-06-21 (Mon, 21 Jun 2021)

  Changed paths:
    M llvm/test/tools/llvm-profdata/text-dump.test
    M llvm/tools/llvm-profdata/llvm-profdata.cpp

  Log Message:
  -----------
  [llvm-profdata] Allow omission of -o for --text output

This makes it more convenient to get a text format profile.

Add an error for printing non-text format output to a terminal for instrumentation profile.
(It cannot be portably tested. For sample profile, raw_fd_ostream is hidden deeply so it's inconvenient to add a diagnostic.)

Reviewed By: davidxl

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




More information about the All-commits mailing list