[cfe-dev] Catching Temporarily Used Types in Debug Info

Reid Kleckner rnk at google.com
Mon Mar 3 12:09:47 PST 2014


On Mon, Mar 3, 2014 at 11:17 AM, David Blaikie <dblaikie at gmail.com> wrote:

> 1) essentially what we had before I made the change to power
> -flimit-debug-info/-fstandalone-debug (prior to the vtable optimization
> going in there too) by "requiresCompleteType": callback during Clang's
> IRGen for various AST constructs that we know require types to be complete,
> and emit debug info for those types. This is a bit painful since we
> essentially ad-hoc implement complete type detection again... - but I might
> be OK with this going into it knowing how/why we have to do this and taking
> a somewhat more systematic approach.
>

I'm surprised this isn't easy to do in CodeGenTypes.  I don't think Sema
has any knowledge of which decls are going to be emitted at CodeGen time,
so the only way to really get this right would be to mirror the CodeGen
logic of marking things for deferred emission.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140303/592d950e/attachment.html>


More information about the cfe-dev mailing list