[patch] Use aliases for more constructors and destructors

Rafael EspĂ­ndola rafael.espindola at gmail.com
Fri Oct 4 20:58:26 PDT 2013


Sorry, correct patch now attached.

On 4 October 2013 23:40, Rafael EspĂ­ndola <rafael.espindola at gmail.com> wrote:
> I noticed that gcc uses aliases in, for example:
>
> template<typename T>
> struct foobar {
>   foobar() {
>   }
> };
> template struct foobar<void>;
>
> clang is currently way too conservative. It only uses aliases when the
> symbols are strong. It is safe to use aliases to weak symbols, as long
> and the alias itself is also weak.
>
> The attached patch implements that.
>
> Cheers,
> Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: application/octet-stream
Size: 3573 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131004/9ee3629c/attachment.obj>


More information about the cfe-commits mailing list