[PATCH] D47108: Add -fforce-emit-vtable

Piotr Padlewski via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat May 19 11:58:40 PDT 2018


Prazek created this revision.
Prazek added reviewers: rjmccall, rsmith, amharc, kuhar.
Herald added a subscriber: llvm-commits.

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


Repository:
  rL LLVM

https://reviews.llvm.org/D47108

Files:
  clang/docs/ClangCommandLineReference.rst
  clang/docs/UsersManual.rst
  clang/include/clang/Driver/Options.td
  clang/include/clang/Frontend/CodeGenOptions.def
  clang/lib/CodeGen/ItaniumCXXABI.cpp
  clang/lib/Driver/ToolChains/Clang.cpp
  clang/lib/Frontend/CompilerInvocation.cpp
  clang/test/CodeGenCXX/vtable-available-externally.cpp
  clang/test/CodeGenCXX/vtable-linkage.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47108.147671.patch
Type: text/x-patch
Size: 10422 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180519/edb0c5a7/attachment.bin>


More information about the cfe-commits mailing list