[all-commits] [llvm/llvm-project] 4cd7ba: [gcov] Refactor llvm-cov gcov and add SourceInfo

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Jun 16 14:14:50 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4cd7ba7eca194feccc80413d3b8021ebd03a4f2d
      https://github.com/llvm/llvm-project/commit/4cd7ba7eca194feccc80413d3b8021ebd03a4f2d
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-06-16 (Tue, 16 Jun 2020)

  Changed paths:
    M llvm/include/llvm/ProfileData/GCOV.h
    M llvm/lib/ProfileData/GCOV.cpp
    M llvm/test/tools/llvm-cov/llvm-cov.test
    M llvm/tools/llvm-cov/gcov.cpp

  Log Message:
  -----------
  [gcov] Refactor llvm-cov gcov and add SourceInfo


  Commit: def21563895d757c7769de41d4ee8d9cb99714db
      https://github.com/llvm/llvm-project/commit/def21563895d757c7769de41d4ee8d9cb99714db
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-06-16 (Tue, 16 Jun 2020)

  Changed paths:
    M llvm/include/llvm/ProfileData/GCOV.h
    M llvm/lib/ProfileData/GCOV.cpp
    M llvm/test/tools/llvm-cov/gcov-8.c
    A llvm/test/tools/llvm-cov/gcov-intermediate-format.test
    M llvm/tools/llvm-cov/gcov.cpp

  Log Message:
  -----------
  [gcov] Add -i --intermediate-format

Between gcov 4.9~8, `gcov -i $file` prints coverage information to
$file.gcov in an intermediate text format (single file, instead of
$source.gcov for each source file).

lcov newer than 2019-05-24 detects -i support and uses it to increase
processing speed.  gcov 9 (GCC r265587) removed --intermediate-format
and -i was changed to mean --json-format. However, we consider this
format still useful and support it. geninfo (part of lcov) supports this
format even if we announce that we are compatible with gcov 9.0.0


Compare: https://github.com/llvm/llvm-project/compare/28ebdf1a02eb...def21563895d


More information about the All-commits mailing list