]> granicus.if.org Git - llvm/commit
Ignore object files that lack coverage information.
authorJames Y Knight <jyknight@google.com>
Wed, 28 Aug 2019 20:35:50 +0000 (20:35 +0000)
committerJames Y Knight <jyknight@google.com>
Wed, 28 Aug 2019 20:35:50 +0000 (20:35 +0000)
commit7a0044c42024c69a05cc71af75e104947c7141ca
tree6c722f1b9bc0ca429e55ffa01d2fd8a2826f9fc3
parent8bee6f71bbccc55b37b792396dbd40d61356dd62
Ignore object files that lack coverage information.

Before this change, if multiple binary files were presented, all of them must have been instrumented or the load would fail with coverage_map_error::no_data_found.

Patch by Dean Sturtevant.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370257 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ProfileData/Coverage/CoverageMapping.h
lib/ProfileData/Coverage/CoverageMapping.cpp
test/tools/llvm-cov/Inputs/multiple_objects_not_all_instrumented/instrumented [new file with mode: 0755]
test/tools/llvm-cov/Inputs/multiple_objects_not_all_instrumented/instrumented.cc [new file with mode: 0644]
test/tools/llvm-cov/Inputs/multiple_objects_not_all_instrumented/instrumented.profdata [new file with mode: 0644]
test/tools/llvm-cov/Inputs/multiple_objects_not_all_instrumented/instrumented.raw [new file with mode: 0644]
test/tools/llvm-cov/Inputs/multiple_objects_not_all_instrumented/not_instrumented [new file with mode: 0755]
test/tools/llvm-cov/Inputs/multiple_objects_not_all_instrumented/not_instrumented.cc [new file with mode: 0644]
test/tools/llvm-cov/multiple-objects-not-all-instrumented.test [new file with mode: 0644]