HomePhabricator

Add -fforce-emit-vtables

Authored by Prazek on Jun 13 2018, 6:55 AM.

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>
llvm-svn: 334600

Details

Committed
PrazekJun 13 2018, 6:55 AM
Differential Revision
D47108: [CodeGenCXX] Add -fforce-emit-vtables
Parents
rG60e3d582f664: [llvm-exegesis] Fix failing assert when creating Snippet for LAHF.
Branches
Unknown
Tags
Unknown