mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
3c9c5131da
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
13 lines
670 B
Plaintext
13 lines
670 B
Plaintext
RUN: llvm-cov export --format=lcov --instr-profile=%S/Inputs/multiple_objects_not_all_instrumented/instrumented.profdata \
|
|
RUN: -object %S/Inputs/multiple_objects_not_all_instrumented/not_instrumented \
|
|
RUN: -object %S/Inputs/multiple_objects_not_all_instrumented/instrumented | FileCheck -check-prefix=FN %s
|
|
|
|
FN:1,_Z2f1v
|
|
|
|
Instructions for regenerating the test:
|
|
|
|
clang -std=c++11 not_instrumented.cc -o not_instrumented
|
|
clang -std=c++11 -mllvm -enable-name-compression=false -fprofile-instr-generate -fcoverage-mapping instrumented.cc -o instrumented
|
|
LLVM_PROFILE_FILE="instrumented.raw" ./instrumented
|
|
llvm-profdata merge instrumented.raw -o instrumented.profdata
|