[gcov] Display the hit counter for the line of a function definition
authorCalixte Denizet <cdenizet@mozilla.com>
Thu, 11 Oct 2018 08:53:43 +0000 (08:53 +0000)
committerCalixte Denizet <cdenizet@mozilla.com>
Thu, 11 Oct 2018 08:53:43 +0000 (08:53 +0000)
commitd2f290b0348a96704dd5a39d390ea3492448a0cb
tree58d23c314fed082c9a68546ceeee0771b85b476a
parent5dbeff3e1c57f60a391e54bbdda03997d5d8e67a
[gcov] Display the hit counter for the line of a function definition

Summary:
Right now there is no hit counter on the line of function.
So the idea is add the line of the function to all the lines covered by the entry block.
Tests in compiler-rt/profile will be fixed in another patch: https://reviews.llvm.org/D49854

Reviewers: marco-c, davidxl

Reviewed By: marco-c

Subscribers: sylvestre.ledru, llvm-commits

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

llvm-svn: 344228
llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp