summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/Archive.cpp
diff options
context:
space:
mode:
authorCalixte Denizet <cdenizet@mozilla.com>2018-11-07 13:49:17 +0000
committerCalixte Denizet <cdenizet@mozilla.com>2018-11-07 13:49:17 +0000
commitc3bed1e8e6eb7779fa7d4b24a43e827c675c0331 (patch)
treebdf548eb8a7d709148e91ab812e2f6ad8d12fbf8 /llvm/lib/Object/Archive.cpp
parentc9f3cba3c60c8e854e56e3f4d63def664ec9527e (diff)
downloadbcm5719-llvm-c3bed1e8e6eb7779fa7d4b24a43e827c675c0331.tar.gz
bcm5719-llvm-c3bed1e8e6eb7779fa7d4b24a43e827c675c0331.zip
[GCOV] Flush counters before to avoid counting the execution before fork twice and for exec** functions we must flush before the call
Summary: This is replacement for patch in https://reviews.llvm.org/D49460. When we fork, the counters are duplicate as they're and so the values are finally wrong when writing gcda for parent and child. So just before to fork, we flush the counters and so the parent and the child have new counters set to zero. For exec** functions, we need to flush before the call to have some data. Reviewers: vsk, davidxl, marco-c Reviewed By: marco-c Subscribers: llvm-commits, sylvestre.ledru, marco-c Differential Revision: https://reviews.llvm.org/D53593 llvm-svn: 346313
Diffstat (limited to 'llvm/lib/Object/Archive.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud