summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-cov/Inputs
diff options
context:
space:
mode:
authorSean Eveson <eveson.sean@gmail.com>2017-09-28 10:07:30 +0000
committerSean Eveson <eveson.sean@gmail.com>2017-09-28 10:07:30 +0000
commitfa8ef35e786b59d2916a7358c30c1489a7d79b19 (patch)
tree36c1109197a1708c03e6e76b48428228c468e223 /llvm/test/tools/llvm-cov/Inputs
parent89d2be0702e1e57bfe514b050bdbd743c3e8731f (diff)
downloadbcm5719-llvm-fa8ef35e786b59d2916a7358c30c1489a7d79b19.tar.gz
bcm5719-llvm-fa8ef35e786b59d2916a7358c30c1489a7d79b19.zip
[llvm-cov] Create directory structure when filtering using -name*= options
Before this change using any of the -name*= command line options with an output directory would result in a single file (functions.txt/functions.html) containing the coverage for those specific functions. Now you get the same directory structure as when not using any -name*= options. Differential Revision: https://reviews.llvm.org/D38280 llvm-svn: 314396
Diffstat (limited to 'llvm/test/tools/llvm-cov/Inputs')
-rw-r--r--llvm/test/tools/llvm-cov/Inputs/dir-with-filtering.covmappingbin0 -> 264 bytes
-rw-r--r--llvm/test/tools/llvm-cov/Inputs/dir-with-filtering.proftext32
-rw-r--r--llvm/test/tools/llvm-cov/Inputs/dir-with-filtering1.cpp8
-rw-r--r--llvm/test/tools/llvm-cov/Inputs/dir-with-filtering2.cpp8
4 files changed, 48 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-cov/Inputs/dir-with-filtering.covmapping b/llvm/test/tools/llvm-cov/Inputs/dir-with-filtering.covmapping
new file mode 100644
index 00000000000..0f52ba896ec
--- /dev/null
+++ b/llvm/test/tools/llvm-cov/Inputs/dir-with-filtering.covmapping
Binary files differ
diff --git a/llvm/test/tools/llvm-cov/Inputs/dir-with-filtering.proftext b/llvm/test/tools/llvm-cov/Inputs/dir-with-filtering.proftext
new file mode 100644
index 00000000000..6457ad1751e
--- /dev/null
+++ b/llvm/test/tools/llvm-cov/Inputs/dir-with-filtering.proftext
@@ -0,0 +1,32 @@
+main
+# Func Hash:
+0
+# Num Counters:
+1
+# Counter Values:
+1
+
+_Z2f1v
+# Func Hash:
+0
+# Num Counters:
+1
+# Counter Values:
+1
+
+_Z2f2v
+# Func Hash:
+0
+# Num Counters:
+1
+# Counter Values:
+0
+
+_Z2f3v
+# Func Hash:
+0
+# Num Counters:
+1
+# Counter Values:
+0
+
diff --git a/llvm/test/tools/llvm-cov/Inputs/dir-with-filtering1.cpp b/llvm/test/tools/llvm-cov/Inputs/dir-with-filtering1.cpp
new file mode 100644
index 00000000000..b6a308f5ccb
--- /dev/null
+++ b/llvm/test/tools/llvm-cov/Inputs/dir-with-filtering1.cpp
@@ -0,0 +1,8 @@
+int f1() {
+ return 1;
+}
+
+int main() {
+ f1();
+ return 0;
+}
diff --git a/llvm/test/tools/llvm-cov/Inputs/dir-with-filtering2.cpp b/llvm/test/tools/llvm-cov/Inputs/dir-with-filtering2.cpp
new file mode 100644
index 00000000000..2fa2c4e6ad1
--- /dev/null
+++ b/llvm/test/tools/llvm-cov/Inputs/dir-with-filtering2.cpp
@@ -0,0 +1,8 @@
+int f2() {
+ return 2;
+}
+
+int f3() {
+ return 3;
+}
+
OpenPOWER on IntegriCloud