Support loading code coverage data from regular archives, thin archives,
and from MachO universal binaries which contain archives.
Testing: check-llvm, check-profile (with {A,UB}San enabled)
rdar://51538999
Paths
| Differential D63232
[Coverage] Load code coverage data from archives ClosedPublic Authored by vsk on Jun 12 2019, 3:49 PM.
Details Summary Support loading code coverage data from regular archives, thin archives, Testing: check-llvm, check-profile (with {A,UB}San enabled) rdar://51538999
Diff Detail Event TimelineComment Actions Left some questions / suggestions, but don't see any problems, LGTM!
This revision is now accepted and ready to land.Jun 13 2019, 8:44 AM vsk marked 2 inline comments as done. Comment Actions
Comment Actions Thanks for the replies, Vedant. Still LGTM!
Closed by commit rL363325: [Coverage] Load code coverage data from archives (authored by vedantk). · Explain WhyJun 13 2019, 1:46 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 204577 llvm/include/llvm/ProfileData/Coverage/CoverageMappingReader.h
llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp
llvm/test/tools/llvm-cov/Inputs/universal_bin_wrapping_archives/obj1.c
llvm/test/tools/llvm-cov/Inputs/universal_bin_wrapping_archives/obj2.c
llvm/test/tools/llvm-cov/Inputs/universal_bin_wrapping_archives/universal_bin_wrapping_archives
llvm/test/tools/llvm-cov/Inputs/universal_bin_wrapping_archives/universal_bin_wrapping_archives.proftext
llvm/test/tools/llvm-cov/universal_bin_wrapping_archives.test
|
nit: I guess it's stupid, but maybe sizeof(uint32_t) isntead of 4? And the same in the following conditions.