[cfe-commits] [patch] Add support for weakref

Rafael Espindola espindola at google.com
Sat Feb 20 21:01:07 PST 2010

> I don't understand enough about weakref to evaluate the semantics of
> this, but from the docs it seems to not be just equivalent to weak +
> alias?

At the C/C++ level? It is not, they have different warnings and are
supported in different cases. I update the patch with comments and
tests to try to show where exactly it is supported.

At the llvm level it gets represented as "alias weak", that is why I
implemented it with WeakAttr + AliasAttr. I can add a WeakRefAttr and
codegen it as "weak" if you want.

>  - Daniel

Rafael Ávila de Espíndola
-------------- next part --------------
A non-text attachment was scrubbed...
Name: weakref.pach
Type: application/octet-stream
Size: 8115 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20100221/cd03a04e/attachment.obj>

More information about the cfe-commits mailing list