[cfe-commits] mark vtables linkonce_odr

Nick Lewycky nicholas at mxc.ca
Sun Oct 25 23:54:19 PDT 2009

I was looking at Clang output for C++ code and noticed that we were 
emitting vtables with 'weak' linkage. From what I can see, clang already 
has the full declaration when it goes to emit the vtable, and should be 
using 'linkonce_odr' which gives LLVM some hope of devirtualizing.

Is that correct? If so, the attached patch makes the 1-line change to 
make it so. Please review!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtable-linkage.patch
Type: text/x-patch
Size: 564 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20091025/87de3c24/attachment.bin>

More information about the cfe-commits mailing list