From: Piotr Padlewski Date: Mon, 16 Jan 2017 13:20:08 +0000 (+0000) Subject: Add -fstrict-vtable-pointers to UsersManual X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fae0c15ab2dceb31c9ff4c8e384a0ba4780988f4;p=clang 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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@292112 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/UsersManual.rst b/docs/UsersManual.rst index 5c1646f531..d7554a7425 100644 --- a/docs/UsersManual.rst +++ b/docs/UsersManual.rst @@ -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