OSDN Git Service

[sancov] improved object files handling.
authorMike Aizatsky <aizatsky@chromium.org>
Fri, 12 Feb 2016 00:29:07 +0000 (00:29 +0000)
committerMike Aizatsky <aizatsky@chromium.org>
Fri, 12 Feb 2016 00:29:07 +0000 (00:29 +0000)
commit4c8093a71a407648a79f5caf0bb3ddcc41336cea
treef74776655a2633f69ac6bec34869176256cbcffa
parent29f3f95d1e532f8f24816177a2662e82ab304f6b
[sancov] improved object files handling.

Multi-dso programs result in multiple coverage files dumped of the form
'<module_name>.<pid>.sancov'. When analyzing these coverage files it is
important to use correct corresponding object file.

This change removes the "-obj" sancov flag and lets user specify object
file names alongside coverage files. Sancov tool would match them using
<module_name> part of coverage file and short file name of the object
file.

Corresponding changes:
- compiler-rt: http://reviews.llvm.org/D17171
- docs: http://reviews.llvm.org/D17175

Differential Revision: http://reviews.llvm.org/D17169

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260628 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/sancov/Inputs/test-linux_x86_64.0.sancov [moved from test/tools/sancov/Inputs/test-linux_x86_64.sancov with 100% similarity]
test/tools/sancov/Inputs/test-linux_x86_64.1.sancov [moved from test/tools/sancov/Inputs/test-linux_x86_64-1.sancov with 100% similarity]
test/tools/sancov/blacklist.test
test/tools/sancov/covered_functions.test
test/tools/sancov/html-report.test
test/tools/sancov/not_covered_functions.test
test/tools/sancov/print.test
tools/sancov/sancov.cc