[cfe-dev] Marking v-tables used whenever any virtual function is referenced
Rafael EspĂndola
rafael.espindola at gmail.com
Fri Jul 13 19:02:11 PDT 2012
The testcase you added to virt-template-vtable.cpp is already passing
without your patch, anything wrong? Same goes for the test in
virtual-member-functions.cpp . Is this really a Sema test?
On 11 July 2012 03:53, Richard Smith <richard at metafoo.co.uk> wrote:
> 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
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
More information about the cfe-dev
mailing list