[cfe-dev] Marking v-tables used whenever any virtual function is referenced

Richard Smith richard at metafoo.co.uk
Wed Jul 11 00:53:57 PDT 2012


Hi,

Currently, Clang marks a class's vtable as used (and thus marks as used
and, potentially, instantiates everything within it) whenever any virtual
function in the class is referenced. This seems excessive; is there a
reason why we'd always want the vtable in such circumstances? (Attached is
a patch to remove this behavior, which works fine in my -- fairly limited,
so far -- testing).

Thanks,
Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120711/f3625e4e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtable-used-less.diff
Type: application/octet-stream
Size: 4029 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120711/f3625e4e/attachment.obj>


More information about the cfe-dev mailing list