summaryrefslogtreecommitdiffstats
path: root/llvm/docs/CommandGuide
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2019-02-19 20:45:00 +0000
committerVedant Kumar <vsk@apple.com>2019-02-19 20:45:00 +0000
commita0b97254797873b69ad5087ef748aebcf4426db8 (patch)
tree48122189823617ac729b4abd4c93d0bd35511182 /llvm/docs/CommandGuide
parent069af04a4a3855bd0b7d7f1bdad8a0d8bb10db85 (diff)
downloadbcm5719-llvm-a0b97254797873b69ad5087ef748aebcf4426db8.tar.gz
bcm5719-llvm-a0b97254797873b69ad5087ef748aebcf4426db8.zip
[llvm-cov] Add support for gcov --hash-filenames option
The patch adds support for --hash-filenames to llvm-cov. This option adds md5 hash of the source path to the name of the generated .gcov file. The option is crucial for cases where you have multiple files with the same name but can't use --preserve-paths as resulting filenames exceed the limit. from gcov(1): ``` -x --hash-filenames By default, gcov uses the full pathname of the source files to to create an output filename. This can lead to long filenames that can overflow filesystem limits. This option creates names of the form source-file##md5.gcov, where the source-file component is the final filename part and the md5 component is calculated from the full mangled name that would have been used otherwise. ``` Patch by Igor Ignatev! Differential Revision: https://reviews.llvm.org/D58370 llvm-svn: 354379
Diffstat (limited to 'llvm/docs/CommandGuide')
-rw-r--r--llvm/docs/CommandGuide/llvm-cov.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/docs/CommandGuide/llvm-cov.rst b/llvm/docs/CommandGuide/llvm-cov.rst
index 71924e997d9..6e90760cbaf 100644
--- a/llvm/docs/CommandGuide/llvm-cov.rst
+++ b/llvm/docs/CommandGuide/llvm-cov.rst
@@ -150,6 +150,11 @@ OPTIONS
Display the version of llvm-cov.
+.. option:: -x, --hash-filenames
+
+ Use md5 hash of file name when naming the coverage output files. The source
+ file name will be suffixed by ``##`` followed by MD5 hash calculated for it.
+
EXIT STATUS
^^^^^^^^^^^
OpenPOWER on IntegriCloud