<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 29, 2016 at 12:03 PM, Adrian Prantl via cfe-commits <span dir="ltr"><<a href="mailto:cfe-commits@lists.llvm.org" target="_blank">cfe-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> On Mar 29, 2016, at 12:00 PM, Joerg Sonnenberger <<a href="mailto:joerg@britannica.bec.de">joerg@britannica.bec.de</a>> wrote:<br>
><br>
> On Tue, Mar 29, 2016 at 06:47:24PM +0000, Adrian Prantl via cfe-commits wrote:<br>
>> This code in this patch listens to the driver option -gfull, and lowers it to the new cc1 option -debug-retain-types (1).<br>
>> When -debug-retain-types is present, CGDebugInfo will retain every(2) type it creates.<br>
><br>
> Is there a good reason for calling it -gfull? I would find something<br>
> -gall-types or -gretain-all-types to make a lot more sense. This should<br>
> be orthogonal to other options like providing only line tables?<br>
<br>
</span>My thinking was this:<br>
The driver already supports -gfull, but it doesn’t do anything.<br>
This patch can be considered a first step towards making -gfull behave as expected.<br>
Eventually it should emit debug info for *all* types.<br></blockquote><div><br></div><div>Seems somewhat problematic to half implement it, though. (admittedly we're just silently ignoring it right now)<br><br>& is 'real' -gfull what dtrace really wants? (seems it isn't - since clang's never really implemented it?)<br><br>Emitting all types referenced by used (even if later optimized away) code seems like the thing? -greferenced? or maybe a -f flag? Not sure.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class=""><br>
> Joerg<br>
><br>
> PS: Slightly related side question, do we have any tools for extracting<br>
> a given list of types for retaining? Either by name or global variable<br>
> expression.<br>
<br>
</span>Extract them from where? Can you give an example?<br>
<span class="HOEnZb"><font color="#888888"><br>
-- adrian<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits</a><br>
</div></div></blockquote></div><br></div></div>