Produce direct calls instead of alias to linkonce_odr functions

Rafael EspĂ­ndola rafael.espindola at gmail.com
Mon Nov 4 14:48:19 PST 2013


On 4 November 2013 14:37, Reid Kleckner <rnk at google.com> wrote:
> How do you deal with the case where not all references to the aliased entity
> have been generated yet?  For example:
>
> Emit call to derived ctor
> Emit derived ctor
> RAUW derived ctor with base ctor
> Emit call to derived ctor, create new declaration for it
>
> I attempted this before, and this is the issue I hit.

This only happens for inline destructors (they are the ones that are
linkonce_odr) and they are only output once at the end of the file via
EmitDeferred. Were you trying to avoid aliases in more cases maybe?

Cheers,
Rafael



More information about the cfe-commits mailing list