[PATCH] D58370: [llvm-cov] Add support for gcov --hash-filenames option.
Igor Ignatev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 18 22:16:14 PST 2019
iignatev created this revision.
Herald added subscribers: llvm-commits, jdoerfert.
Herald added a project: LLVM.
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.
Repository:
rL LLVM
https://reviews.llvm.org/D58370
Files:
docs/CommandGuide/llvm-cov.rst
include/llvm/ProfileData/GCOV.h
lib/ProfileData/GCOV.cpp
test/tools/llvm-cov/llvm-cov.test
tools/llvm-cov/gcov.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58370.187305.patch
Type: text/x-patch
Size: 4405 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190219/f5626214/attachment.bin>
More information about the llvm-commits
mailing list