1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
llvm-mirror/test/tools/llvm-cov
Justin Bogner 6484f6de8c InstrProf: Do a better job of reading coverage mapping data.
This code was casting regions of a memory buffer to a couple of
different structs. This is wrong in a few ways:

1. It breaks aliasing rules.
2. If the buffer isn't aligned, it hits undefined behaviour.
3. It completely ignores endianness differences.
4. The structs being defined for this aren't specifying their padding
   properly, so this doesn't even represent the data properly on some
   platforms.

This commit is mostly NFC, except that it fixes reading coverage for
32 bit binaries as a side effect of getting rid of the mispadded
structs. I've included a test for that.

I've also baked in that we only handle little endian more explicitly,
since that was true in practice already. I'll fix this to handle
endianness properly in a followup commit.

llvm-svn: 232346
2015-03-16 06:55:45 +00:00
..
Inputs InstrProf: Do a better job of reading coverage mapping data. 2015-03-16 06:55:45 +00:00
binary-formats.c InstrProf: Do a better job of reading coverage mapping data. 2015-03-16 06:55:45 +00:00
copy_block_helper.m
lit.local.cfg InstrProf: Do a better job of reading coverage mapping data. 2015-03-16 06:55:45 +00:00
llvm-cov.test lit: Add 'cd' support to the internal shell and port some tests 2015-03-02 21:33:18 +00:00
range_based_for.cpp
report.cpp llvm-cov: Actually use the command line arguments when reporting 2015-02-14 02:05:05 +00:00
showExpansions.cpp
showHighlightedRanges.cpp
showLineExecutionCounts.cpp InstrProf: Use the proftext format for these coverage tests 2015-03-09 18:54:58 +00:00
showRegionMarkers.cpp InstrProf: Use the proftext format for these coverage tests 2015-03-09 18:54:58 +00:00
showTemplateInstantiations.cpp
universal-binary.c Now that r231902's test is executed, make it actually pass 2015-03-11 08:17:25 +00:00