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

Daniel Thornburgh via All-commits all-commits at lists.llvm.org
Fri Feb 17 13:12:08 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8007bcc13f8f5f5c352a24e122b7090494a62bfb
      https://github.com/llvm/llvm-project/commit/8007bcc13f8f5f5c352a24e122b7090494a62bfb
  Author: Daniel Thornburgh <dthorn at google.com>
  Date:   2023-02-17 (Fri, 17 Feb 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




More information about the All-commits mailing list