r292112 - Add -fstrict-vtable-pointers to UsersManual

Piotr Padlewski via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 16 05:20:09 PST 2017

Author: prazek
Date: Mon Jan 16 07:20:08 2017
New Revision: 292112

URL: http://llvm.org/viewvc/llvm-project?rev=292112&view=rev
Add -fstrict-vtable-pointers to UsersManual

Summary: Add missing flag to UsersManual
It would be good to merge it to 4.0 branch.

Reviewers: hans

Subscribers: cfe-commits

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


Modified: cfe/trunk/docs/UsersManual.rst
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/UsersManual.rst?rev=292112&r1=292111&r2=292112&view=diff
--- cfe/trunk/docs/UsersManual.rst (original)
+++ cfe/trunk/docs/UsersManual.rst Mon Jan 16 07:20:08 2017
@@ -1097,6 +1097,13 @@ are listed below.
    the behavior of sanitizers in the ``cfi`` group to allow checking
    of cross-DSO virtual and indirect calls.
+.. option:: -fstrict-vtable-pointers
+   Enable optimizations based on the strict rules for overwriting polymorphic
+   C++ objects, i.e. the vptr is invariant during an object's lifetime.
+   This enables better devirtualization. Turned off by default, because it is
+   still experimental.
 .. option:: -ffast-math
    Enable fast-math mode. This defines the ``__FAST_MATH__`` preprocessor

More information about the cfe-commits mailing list