diff options
author | Piotr Padlewski <piotr.padlewski@gmail.com> | 2017-01-16 13:20:08 +0000 |
---|---|---|
committer | Piotr Padlewski <piotr.padlewski@gmail.com> | 2017-01-16 13:20:08 +0000 |
commit | eb9dd5aec88393c63e57eaec209546d42f7a3f97 (patch) | |
tree | 39fca58153e0c4c9fe7a8e4609b546d8cab93a0d /clang/docs | |
parent | 36045cd3d2d41aaeaa48a4cdb25616ff92fa97e8 (diff) | |
download | bcm5719-llvm-eb9dd5aec88393c63e57eaec209546d42f7a3f97.tar.gz bcm5719-llvm-eb9dd5aec88393c63e57eaec209546d42f7a3f97.zip |
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
llvm-svn: 292112
Diffstat (limited to 'clang/docs')
-rw-r--r-- | clang/docs/UsersManual.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/docs/UsersManual.rst b/clang/docs/UsersManual.rst index 5c1646f531c..d7554a74252 100644 --- a/clang/docs/UsersManual.rst +++ b/clang/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 |