[cfe-dev] GCOV and stripping debug info
Nick Lewycky via cfe-dev
cfe-dev at lists.llvm.org
Wed Jan 10 11:54:08 PST 2018
On 10 January 2018 at 11:40, David Blaikie via cfe-dev <
cfe-dev at lists.llvm.org> wrote:
> 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.
>
Correct. I'm not familiar with NoDebug beyond your description in this
thread, but it sounds like the right thing to use now.
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
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180110/be703542/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4847 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180110/be703542/attachment.bin>
More information about the cfe-dev
mailing list