rjmccall added a comment.

You still don't actually want linkonce_odr linkage.  You don't want the weak 
definition to be inlined, so it can't be ODR, and you want to force it to be 
emitted in your library, so it can't be linkonce.  You just want weak linkage.  
There's an existing attribute for that.

At best, you want a pass on your completed library to promote any still-weak 
definitions to strong.  That is not something we can usefully support in an 
attribute; it needs a custom pass.

Dropping unused definitions from your library when it's linked into an actual 
application is just standard dead-code stripping and does not need a special 
linkage.


http://reviews.llvm.org/D18095



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to