]> granicus.if.org Git - clang/commitdiff
Add -fstrict-vtable-pointers to UsersManual
authorPiotr Padlewski <piotr.padlewski@gmail.com>
Mon, 16 Jan 2017 13:24:50 +0000 (13:24 +0000)
committerPiotr Padlewski <piotr.padlewski@gmail.com>
Mon, 16 Jan 2017 13:24:50 +0000 (13:24 +0000)
In order to have link from ReleaseNotes working
this needs to have -fstrict-vtable-pointers
option.

There is also one small typo fix (overridden)
y

https://reviews.llvm.org/D28727

git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_40@292113 91177308-0d34-0410-b5e6-96231b3b80d8

docs/UsersManual.rst

index 3adbfe059f89a0b2b066a57d4cd48781afc18feb..d7554a74252a467b9588740d4b57311bc24fdf44 100644 (file)
@@ -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
@@ -2645,7 +2652,7 @@ Execute ``clang-cl /?`` to see a list of supported options:
                               (overridden by LLVM_PROFILE_FILE env var)
       -fprofile-instr-generate
                               Generate instrumented code to collect execution counts into default.profraw file
-                              (overriden by '=' form of option or LLVM_PROFILE_FILE env var)
+                              (overridden by '=' form of option or LLVM_PROFILE_FILE env var)
       -fprofile-instr-use=<value>
                               Use instrumentation data for profile-guided optimization
       -fsanitize-blacklist=<value>