This is an archive of the discontinued LLVM Phabricator instance.

[GCOV] Remove function names from gcno when using option -coverage-no-function-names-in-data
Needs ReviewPublic

Authored by calixte on Sep 11 2018, 10:51 AM.

Details

Reviewers
marco-c
chandlerc
Summary

This option allows to remove function names from gcda but in this case they're pretty useless in gcno too.
So this patch just puts an empty string for function names when the option is enabled.
In a software like Firefox, we win ~140M in removing them from gcnos.

Diff Detail

Event Timeline

calixte created this revision.Sep 11 2018, 10:51 AM

We might have to introduce a separate option here.
-coverage-no-function-names-in-data could be useful when you want smaller GCDA files, but still want to be able to parse the function names.