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
Justin Bogner 072ef25de8 llvm-cov: Fix reading gcov data that does not have function names
In order for recent gcov versions to read the coverage data, you have
to use UseCfgChecksum=true and FunctionNamesInData=false options for
coverage profiling pass. This is because gcov is expecting the
function section in .gcda to be exactly 3 words in size, containing
ident and two checksums.

While llvm-cov is compatible with UseCfgChecksum=true, it always
expects a function name in .gcda function sections (it's not
compatible with FunctionNamesInData=false). Thus it's currently
impossible to generate one set of coverage files that works with both
gcov and llvm-cov.

This change fixes the reading of coverage information to only read the
function name if it's present.

Patch by Arseny Kapoulkine. Thanks!

llvm-svn: 260162
2016-02-08 22:49:40 +00:00
..
Inputs llvm-cov: Fix reading gcov data that does not have function names 2016-02-08 22:49:40 +00:00
binary-formats.c llvm-cov: Only emit colour by default if the output is a tty 2015-03-19 00:02:23 +00:00
copy_block_helper.m llvm-cov: Require a subcommand when invoked as llvm-cov 2015-03-24 23:34:36 +00:00
cov-comdat.test re-submit test case (withright format-version) 2016-01-21 02:35:59 +00:00
gcov47_compatibility.cpp llvm-cov: Fix reading gcov data that does not have function names 2016-02-08 22:49:40 +00:00
lit.local.cfg InstrProf: Do a better job of reading coverage mapping data. 2015-03-16 06:55:45 +00:00
llvm-cov.test llvm-cov: Require a subcommand when invoked as llvm-cov 2015-03-24 23:34:36 +00:00
range_based_for.cpp llvm-cov: Require a subcommand when invoked as llvm-cov 2015-03-24 23:34:36 +00:00
report.cpp llvm-cov: Only emit colour by default if the output is a tty 2015-03-19 00:02:23 +00:00
showExpansions.cpp InstrProf: Remove xfails for big-endian from coverage tests 2015-03-16 07:29:49 +00:00
showHighlightedRanges.cpp InstrProf: Remove xfails for big-endian from coverage tests 2015-03-16 07:29:49 +00:00
showLineExecutionCounts.cpp InstrProf: Fix display of large numbers in llvm-cov 2015-05-13 22:41:48 +00:00
showRegionMarkers.cpp InstrProf: Fix display of large numbers in llvm-cov 2015-05-13 22:41:48 +00:00
showTemplateInstantiations.cpp llvm-cov: Only emit colour by default if the output is a tty 2015-03-19 00:02:23 +00:00
universal-binary.c llvm-cov: Only emit colour by default if the output is a tty 2015-03-19 00:02:23 +00:00