summaryrefslogtreecommitdiffstats
path: root/llvm/docs/CommandGuide/llvm-cov.rst
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2019-06-13 20:48:57 +0000
committerVedant Kumar <vsk@apple.com>2019-06-13 20:48:57 +0000
commit901d04fc6df81279741ab8afff39bcdaa448200f (patch)
treeebaa56187b47a853480dc1295fb4d7f316c03e7d /llvm/docs/CommandGuide/llvm-cov.rst
parent9c6806b16412c05ea742d6a8ddafb8b97c27f18b (diff)
downloadbcm5719-llvm-901d04fc6df81279741ab8afff39bcdaa448200f.tar.gz
bcm5719-llvm-901d04fc6df81279741ab8afff39bcdaa448200f.zip
[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 llvm-svn: 363325
Diffstat (limited to 'llvm/docs/CommandGuide/llvm-cov.rst')
-rw-r--r--llvm/docs/CommandGuide/llvm-cov.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/docs/CommandGuide/llvm-cov.rst b/llvm/docs/CommandGuide/llvm-cov.rst
index 7cc7d3faf2e..7d696c9e353 100644
--- a/llvm/docs/CommandGuide/llvm-cov.rst
+++ b/llvm/docs/CommandGuide/llvm-cov.rst
@@ -181,6 +181,9 @@ The :program:`llvm-cov show` command shows line by line coverage of the
binaries *BIN*,... using the profile data *PROFILE*. It can optionally be
filtered to only show the coverage for the files listed in *SOURCES*.
+*BIN* may be an executable, object file, dynamic library, or archive (thin or
+otherwise).
+
To use :program:`llvm-cov show`, you need a program that is compiled with
instrumentation to emit profile and coverage data. To build such a program with
``clang`` use the ``-fprofile-instr-generate`` and ``-fcoverage-mapping``
@@ -331,6 +334,9 @@ The :program:`llvm-cov report` command displays a summary of the coverage of
the binaries *BIN*,... using the profile data *PROFILE*. It can optionally be
filtered to only show the coverage for the files listed in *SOURCES*.
+*BIN* may be an executable, object file, dynamic library, or archive (thin or
+otherwise).
+
If no source files are provided, a summary line is printed for each file in the
coverage data. If any files are provided, summaries can be shown for each
function in the listed files if the ``-show-functions`` option is enabled.
OpenPOWER on IntegriCloud