[all-commits] [llvm/llvm-project] 7f7cb7: [llvm-cov gcov] Don't suppress .gcov output if .gc...

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


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7f7cb79b57838155a2faf46300491d45eedf8907
      https://github.com/llvm/llvm-project/commit/7f7cb79b57838155a2faf46300491d45eedf8907
  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:
  -----------
  [llvm-cov gcov] Don't suppress .gcov output if .gcda is corrupted

If .gcda is corrupted, gcov continues to produce a .gcov and just
assumes execution counts are zeros. This is reasonable, because the
program can corrupt its .gcda output. The code path should be similar to
the code path without .gcda.




More information about the All-commits mailing list