<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Mar 3, 2014 at 11:17 AM, David Blaikie <span dir="ltr"><<a href="mailto:dblaikie@gmail.com" target="_blank">dblaikie@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>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.<br>
</div></div></div></div></blockquote><div><br></div><div>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.</div>
</div></div></div>