Add -fforce-emit-vtables

Description

Add -fforce-emit-vtables

Summary:
In many cases we can't devirtualize
because definition of vtable is not present. Most of the
time it is caused by inline virtual function not beeing
emitted. Forcing emitting of vtable adds a reference of these
inline virtual functions.
Note that GCC was always doing it.

Reviewers: rjmccall, rsmith, amharc, kuhar

Subscribers: llvm-commits, cfe-commits

Differential Revision: https://reviews.llvm.org/D47108

Co-authored-by: Krzysztof Pszeniczny <krzysztof.pszeniczny@gmail.com>

Details

Committed
PrazekJun 13 2018, 6:55 AM
Differential Revision
D47108: [CodeGenCXX] Add -fforce-emit-vtables
Branches
Unknown
Tags
Unknown