1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 04:52:54 +02:00
llvm-mirror/test/tools/llvm-cov/Inputs
Igor Kudrin 18d682df79 [Coverage] Fix an issue where improper coverage mapping data could be loaded for an inline function.
If an inline function is observed but unused in a translation unit, dummy
coverage mapping data with zero hash is stored for this function.
If such a coverage mapping section came earlier than real one, the latter
was ignored. As a result, llvm-cov was unable to show coverage information
for those functions.

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

llvm-svn: 270194
2016-05-20 09:14:24 +00:00
..
binary-formats.macho32b
binary-formats.macho32l
binary-formats.macho64l
binary-formats.proftext
binary-formats.v1.linux64l [Coverage] add covmap v2 binary format regression test 2016-02-10 20:14:04 +00:00
binary-formats.v2.linux32l Reapply (2x) "[PGO] Fix name encoding for ObjC-like functions" 2016-03-28 21:06:42 +00:00
binary-formats.v2.linux64l Reapply (2x) "[PGO] Fix name encoding for ObjC-like functions" 2016-03-28 21:06:42 +00:00
combine_expansions.covmapping [Coverage] Ensure that coverage mapping data has an expected alignment in 'covmapping' files. 2016-05-18 07:43:27 +00:00
combine_expansions.proftext [Coverage] Combine counts of expansion regions if there are no code regions for the same area. 2016-05-05 09:39:45 +00:00
copy_block_helper.gcda
copy_block_helper.gcno
elf_binary_comdat.profdata Reapply (2x) "[PGO] Fix name encoding for ObjC-like functions" 2016-03-28 21:06:42 +00:00
gcov47_compatibility.gcda llvm-cov: Fix reading gcov data that does not have function names 2016-02-08 22:49:40 +00:00
gcov47_compatibility.gcno llvm-cov: Fix reading gcov data that does not have function names 2016-02-08 22:49:40 +00:00
highlightedRanges.covmapping [Coverage] Ensure that coverage mapping data has an expected alignment in 'covmapping' files. 2016-05-18 07:43:27 +00:00
highlightedRanges.profdata
instrprof-comdat.h [Coverage] Fix the expected counts in instrprof-comdat.h 2016-03-28 22:10:40 +00:00
lineExecutionCounts.covmapping [Coverage] Ensure that coverage mapping data has an expected alignment in 'covmapping' files. 2016-05-18 07:43:27 +00:00
lineExecutionCounts.proftext
prefer_used_to_unused.covmapping [Coverage] Fix an issue where improper coverage mapping data could be loaded for an inline function. 2016-05-20 09:14:24 +00:00
prefer_used_to_unused.cpp [Coverage] Fix an issue where improper coverage mapping data could be loaded for an inline function. 2016-05-20 09:14:24 +00:00
prefer_used_to_unused.proftext [Coverage] Fix an issue where improper coverage mapping data could be loaded for an inline function. 2016-05-20 09:14:24 +00:00
prevent_false_instantiations.covmapping [Coverage] Ensure that coverage mapping data has an expected alignment in 'covmapping' files. 2016-05-18 07:43:27 +00:00
prevent_false_instantiations.cpp Reapply "[Coverage] Prevent detection of false instantiations in case of macro expansion." 2016-04-18 15:36:30 +00:00
prevent_false_instantiations.proftext Reapply "[Coverage] Prevent detection of false instantiations in case of macro expansion." 2016-04-18 15:36:30 +00:00
range_based_for.gcda
range_based_for.gcno
README
regionMarkers.covmapping [Coverage] Ensure that coverage mapping data has an expected alignment in 'covmapping' files. 2016-05-18 07:43:27 +00:00
regionMarkers.proftext
report.covmapping
report.profdata
showExpansions.covmapping [Coverage] Ensure that coverage mapping data has an expected alignment in 'covmapping' files. 2016-05-18 07:43:27 +00:00
showExpansions.profdata
templateInstantiations.covmapping [Coverage] Ensure that coverage mapping data has an expected alignment in 'covmapping' files. 2016-05-18 07:43:27 +00:00
templateInstantiations.profdata
test_-a_-b_-c_-u.cpp.gcov
test_-a_-b_-c_-u.h.gcov
test_-a_-b_-u.cpp.gcov
test_-a_-b_-u.h.gcov
test_-a_-b.cpp.gcov
test_-a_-b.h.gcov
test_-a.cpp.gcov
test_-a.h.gcov
test_-b_-f.output
test_-b.output
test_-f.output
test_exit_block_arcs.gcda
test_exit_block_arcs.gcno
test_file_checksum_fail.gcda
test_func_checksum_fail.gcda
test_long_file_names.output
test_long_paths.output
test_missing.cpp.gcov
test_missing.h.gcov
test_missing.output
test_no_gcda.cpp.gcov
test_no_gcda.h.gcov
test_no_gcda.output
test_no_options.cpp.gcov
test_no_options.h.gcov
test_no_options.output
test_no_output.output
test_no_preserve_paths.output
test_objdir.cpp.gcov
test_objdir.h.gcov
test_paths.cpp.gcov
test_paths.gcda
test_paths.gcno
test_paths.h.gcov
test_preserve_paths.output
test_read_fail.gcno
test.cpp
test.gcda
test.gcno
test.h
universal-binary
universal-binary.proftext

These inputs were pre-generated to allow for easier testing of llvm-cov.

The files used to test the gcov compatible code coverage tool were generated
using the following method:

  test.gcno and test.gcda were create by running clang:
    clang++ -g -ftest-coverage -fprofile-arcs test.cpp

  test.cpp.gcov was created by running gcov 4.2.1:
    gcov test.cpp

The 'covmapping' files that are used to test llvm-cov contain raw sections
with the coverage mapping data generated by the compiler and linker. They are
created by running clang and llvm-cov:
  clang++ -fprofile-instr-generate -fcoverage-mapping -o test test.cpp
  llvm-cov convert-for-testing -o test.covmapping test

The 'profdata' files were generated by running an instrumented version of the
program and merging the raw profile data using llvm-profdata.
  ./test
  llvm-profdata merge -o test.profdata default.profraw