OSDN Git Service

[Coverage] Load code coverage data from archives
authorVedant Kumar <vsk@apple.com>
Thu, 13 Jun 2019 20:48:57 +0000 (20:48 +0000)
committerVedant Kumar <vsk@apple.com>
Thu, 13 Jun 2019 20:48:57 +0000 (20:48 +0000)
commit235358f255de628174170495b1e9a1f27bc5eedd
tree997e14524ba1a42fb9a17658573299b30ba01e99
parent521eae8a46ff5e1b07e8f2a27a9d63b1b07c0d94
[Coverage] Load code coverage data from archives

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

Differential Revision: https://reviews.llvm.org/D63232

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363325 91177308-0d34-0410-b5e6-96231b3b80d8
docs/CommandGuide/llvm-cov.rst
include/llvm/ProfileData/Coverage/CoverageMappingReader.h
lib/ProfileData/Coverage/CoverageMapping.cpp
lib/ProfileData/Coverage/CoverageMappingReader.cpp
test/tools/llvm-cov/Inputs/universal_bin_wrapping_archives/obj1.c [new file with mode: 0644]
test/tools/llvm-cov/Inputs/universal_bin_wrapping_archives/obj1_32.o [new file with mode: 0644]
test/tools/llvm-cov/Inputs/universal_bin_wrapping_archives/obj2.c [new file with mode: 0644]
test/tools/llvm-cov/Inputs/universal_bin_wrapping_archives/obj2_32.o [new file with mode: 0644]
test/tools/llvm-cov/Inputs/universal_bin_wrapping_archives/universal_bin_wrapping_archives [new file with mode: 0644]
test/tools/llvm-cov/Inputs/universal_bin_wrapping_archives/universal_bin_wrapping_archives.proftext [new file with mode: 0644]
test/tools/llvm-cov/universal_bin_wrapping_archives.test [new file with mode: 0644]