[GCOV] Function counters are wrong when on one line
authorCalixte Denizet <cdenizet@mozilla.com>
Tue, 30 Oct 2018 18:41:31 +0000 (18:41 +0000)
committerCalixte Denizet <cdenizet@mozilla.com>
Tue, 30 Oct 2018 18:41:31 +0000 (18:41 +0000)
commit38d50545feb7faffec8b8bbbb40661d21babf6af
tree9b41907efdffac20f6baca9674cfe6d1596ab5b2
parenteedd2ccd02c19c651070525627ca73432d2a06f0
[GCOV] Function counters are wrong when on one line

Summary:
After commit https://reviews.llvm.org/rL344228, the function definitions have a counter but when on one line the counter is wrong (e.g. void foo() { })
I added a test in: https://reviews.llvm.org/D53601

Reviewers: marco-c

Reviewed By: marco-c

Subscribers: llvm-commits, sylvestre.ledru

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

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