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)
commitf025968bccde3c10b1245a9619b01c13b7e2caf9
tree332c5c08e49e8c9bfbe1a2270349257cae5e17cb
parent0b62951e1d9b746515365569f3ba5643bd48d523
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

llvm-svn: 370257
llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h
llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
llvm/test/tools/llvm-cov/Inputs/multiple_objects_not_all_instrumented/instrumented [new file with mode: 0755]
llvm/test/tools/llvm-cov/Inputs/multiple_objects_not_all_instrumented/instrumented.cc [new file with mode: 0644]
llvm/test/tools/llvm-cov/Inputs/multiple_objects_not_all_instrumented/instrumented.profdata [new file with mode: 0644]
llvm/test/tools/llvm-cov/Inputs/multiple_objects_not_all_instrumented/instrumented.raw [new file with mode: 0644]
llvm/test/tools/llvm-cov/Inputs/multiple_objects_not_all_instrumented/not_instrumented [new file with mode: 0755]
llvm/test/tools/llvm-cov/Inputs/multiple_objects_not_all_instrumented/not_instrumented.cc [new file with mode: 0644]
llvm/test/tools/llvm-cov/multiple-objects-not-all-instrumented.test [new file with mode: 0644]