[all-commits] [llvm/llvm-project] 60bba0: [llvm-cov] Create syntax to pass source w/o binary.

Daniel Thornburgh via All-commits all-commits at lists.llvm.org
Sun Mar 5 23:17:40 PST 2023


  Branch: refs/heads/release/16.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 60bba0f5a777623d1af4d5becc60f63ce139bae7
      https://github.com/llvm/llvm-project/commit/60bba0f5a777623d1af4d5becc60f63ce139bae7
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2023-03-04 (Sat, 04 Mar 2023)

  Changed paths:
    M compiler-rt/test/profile/Linux/binary-id-lookup.c
    M llvm/docs/CommandGuide/llvm-cov.rst
    M llvm/tools/llvm-cov/CodeCoverage.cpp

  Log Message:
  -----------
  [llvm-cov] Create syntax to pass source w/o binary.

Since binary ID lookup makes CLI object arguments optional, it should be
possible to pass a list of source files without a binary. Unfortunately,
the current syntax will always interpret the first source file as a
binary. This change adds a `-sources` option to cause all later
positional arguments to be considered sources.

Reviewed By: gulfem

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

(cherry picked from commit 8007bcc13f8f5f5c352a24e122b7090494a62bfb)




More information about the All-commits mailing list