diff options
| author | Eli Friedman <efriedma@codeaurora.org> | 2017-08-09 20:43:31 +0000 |
|---|---|---|
| committer | Eli Friedman <efriedma@codeaurora.org> | 2017-08-09 20:43:31 +0000 |
| commit | c0c182cce1565213a4b0b0a7284538fbcf8b5955 (patch) | |
| tree | 758f6d6294057b08fe1a87f9b73402b4df9aa4be /llvm/test | |
| parent | 14a22a442d8aa6bee8c828872b82b7dd722dc7b8 (diff) | |
| download | bcm5719-llvm-c0c182cce1565213a4b0b0a7284538fbcf8b5955.tar.gz bcm5719-llvm-c0c182cce1565213a4b0b0a7284538fbcf8b5955.zip | |
[llvm-cov] Rearrange entries in report index.
Files which don't contain any functions are likely useless; don't
include them in the main table. Put the links at the bottom of the
page, in case someone wants to figure out coverage for code inside
a macro.
Not sure if this is the best solution, but it seems like an
improvement.
Differential Revision: https://reviews.llvm.org/D36298
llvm-svn: 310518
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/tools/llvm-cov/zeroFunctionFile.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/test/tools/llvm-cov/zeroFunctionFile.c b/llvm/test/tools/llvm-cov/zeroFunctionFile.c index d5b983efb81..f463007fe7f 100644 --- a/llvm/test/tools/llvm-cov/zeroFunctionFile.c +++ b/llvm/test/tools/llvm-cov/zeroFunctionFile.c @@ -10,10 +10,11 @@ int main() { // RUN: llvm-profdata merge %S/Inputs/zeroFunctionFile.proftext -o %t.profdata // RUN: llvm-cov report %S/Inputs/zeroFunctionFile.covmapping -instr-profile %t.profdata 2>&1 | FileCheck --check-prefix=REPORT --strict-whitespace %s -// REPORT: 0 0 - 0 0 - 0 0 - 0 0 - -// REPORT-NO: 0% +// REPORT: Files which contain no functions +// REPORT: zeroFunctionFile.h // RUN: llvm-cov show -j 1 %S/Inputs/zeroFunctionFile.covmapping -format html -instr-profile %t.profdata -o %t.dir // RUN: FileCheck %s -input-file=%t.dir/index.html -check-prefix=HTML -// HTML: <td class='column-entry-green'><pre>- (0/0) // HTML-NO: 0.00% (0/0) +// HTML: Files which contain no functions +// HTML: zeroFunctionFile.h |

