[all-commits] [llvm/llvm-project] b2c32c: [llvm-cov gcov] Add -r (--relative-only) && -s (--...

Fangrui Song via All-commits all-commits at lists.llvm.org
Sun Sep 13 14:54:52 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b2c32c90bab09a6e2c1f370429db26017a182143
      https://github.com/llvm/llvm-project/commit/b2c32c90bab09a6e2c1f370429db26017a182143
  Author: Fangrui Song <i at maskray.me>
  Date:   2020-09-13 (Sun, 13 Sep 2020)

  Changed paths:
    M llvm/include/llvm/ProfileData/GCOV.h
    M llvm/lib/ProfileData/GCOV.cpp
    A llvm/test/tools/llvm-cov/gcov/Inputs/abs-path.gcda
    A llvm/test/tools/llvm-cov/gcov/Inputs/abs-path.gcno
    A llvm/test/tools/llvm-cov/gcov/relative-only.test
    M llvm/tools/llvm-cov/gcov.cpp

  Log Message:
  -----------
  [llvm-cov gcov] Add -r (--relative-only) && -s (--source-prefix)

gcov 4.7 introduced the two options.
https://sourceware.org/pipermail/gcc-patches/2011-November/328782.html

-r only dumps files with relative paths or absolute paths with the prefix
specified by -s. The two options are useful filtering out system header files.




More information about the All-commits mailing list