summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2016-06-29 00:38:21 +0000
committerVedant Kumar <vsk@apple.com>2016-06-29 00:38:21 +0000
commit8d74cb27e82440dbf1bea123613fc373e203680a (patch)
tree2e22c0a2ccf2992092030a25440288f71a1a2513 /llvm/test
parent1ead14b147c5aecacc25d6f1432c0a76b4b91e8c (diff)
downloadbcm5719-llvm-8d74cb27e82440dbf1bea123613fc373e203680a.tar.gz
bcm5719-llvm-8d74cb27e82440dbf1bea123613fc373e203680a.zip
[llvm-cov] Minor cleanups to prepare for the html format patch
- Add renderView{Header,Footer}, renderLineSuffix, and hasSubViews to support creating tables with nested views. - Move the 'Format' cl::opt to make it easier to extend. - Just create one function view file, instead of overwriting the same file for every new function. Add a regression test for this. llvm-svn: 274086
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/tools/llvm-cov/report.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-cov/report.cpp b/llvm/test/tools/llvm-cov/report.cpp
index 3322e1a2c06..45d582aae34 100644
--- a/llvm/test/tools/llvm-cov/report.cpp
+++ b/llvm/test/tools/llvm-cov/report.cpp
@@ -33,3 +33,10 @@ int main() {
bar();
return 0;
}
+
+// Test that listing multiple functions in a function view works.
+// RUN: llvm-cov show -o %t.dir %S/Inputs/report.covmapping -instr-profile=%S/Inputs/report.profdata -filename-equivalence -name-regex=".*" %s
+// RUN: FileCheck -check-prefix=FUNCTIONS -input-file %t.dir/functions.txt %s
+// FUNCTIONS: _Z3foob
+// FUNCTIONS: _Z3barv
+// FUNCTIONS: _Z4func
OpenPOWER on IntegriCloud