[patch] Use aliases for more constructors and destructors

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

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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: application/octet-stream
Size: 3289 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131004/613b2117/attachment.obj>

More information about the cfe-commits mailing list