summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-cov/Inputs/zeroFunctionFile.proftext
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2016-11-21 14:00:04 +0000
committerAlex Lorenz <arphaman@gmail.com>2016-11-21 14:00:04 +0000
commit35369c1eb6c4066a563c5a1766c5fb449dc85eb5 (patch)
tree6d13b621bf3d3bdd02d127965f9f535acdd864c7 /llvm/test/tools/llvm-cov/Inputs/zeroFunctionFile.proftext
parent91972d7f9d9ab4c4db34bc003df1064ae5805736 (diff)
downloadbcm5719-llvm-35369c1eb6c4066a563c5a1766c5fb449dc85eb5.tar.gz
bcm5719-llvm-35369c1eb6c4066a563c5a1766c5fb449dc85eb5.zip
[llvm-cov] Avoid 0% when reporting something that's 0/0
This commit makes llvm-cov avoid showing 0% (0/0) coverage for things like file function coverage, etc. in reports and HTML output. This can happen for files like headers that have macros but no functions. This commit makes llvm-cov report - (0/0) instead. rdar://29246480 Differential Revision: https://reviews.llvm.org/D26615 llvm-svn: 287539
Diffstat (limited to 'llvm/test/tools/llvm-cov/Inputs/zeroFunctionFile.proftext')
-rw-r--r--llvm/test/tools/llvm-cov/Inputs/zeroFunctionFile.proftext16
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-cov/Inputs/zeroFunctionFile.proftext b/llvm/test/tools/llvm-cov/Inputs/zeroFunctionFile.proftext
new file mode 100644
index 00000000000..55187c1a486
--- /dev/null
+++ b/llvm/test/tools/llvm-cov/Inputs/zeroFunctionFile.proftext
@@ -0,0 +1,16 @@
+foo
+# Func Hash:
+13
+# Num Counters:
+2
+# Counter Values:
+1
+1
+
+main
+# Func Hash:
+0
+# Num Counters:
+1
+# Counter Values:
+1
OpenPOWER on IntegriCloud