[cfe-dev] GCOV and stripping debug info

David Blaikie via cfe-dev cfe-dev at lists.llvm.org
Wed Jan 10 11:40:39 PST 2018


Implementing GCOV in the new pass manager  (r322126) I'm wondering whether
the addition of a "StripSymbols(OnlyDebugInfo = true)" pass is needed - and
maybe that functionality in general can be removed?

It was added, I believe, before we had the "NoDebug" style debug info, used
specifically for profiling, optimization remarks, etc. So when this was
implemented, stripping the debug info was probably necessary to avoid
actually emitting debug info into the resulting object files.

This could be useful in an LTO like build, if you know the debug info is
not needed at the LTO stage - strip it out at the end of the frontend
compile to reduce the size of bitcode files.

So... does this seem relevant here? In general? (I haven't looked at what
other uses)

Totally happy to port the StripSymbols pass to the new pass manager if it
seems like it's useful/necessary.

- Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180110/2913c93c/attachment.html>


More information about the cfe-dev mailing list