[PATCH] D136188: Update docs for -fuse-ctor-homing
Amy Huang via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 18 10:57:08 PDT 2022
akhuang created this revision.
akhuang added a reviewer: rnk.
Herald added a project: All.
akhuang requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Update docs to reflect the fact that this flag is on by default now.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D136188
Files:
clang/docs/UsersManual.rst
Index: clang/docs/UsersManual.rst
===================================================================
--- clang/docs/UsersManual.rst
+++ clang/docs/UsersManual.rst
@@ -2860,16 +2860,12 @@
.. option:: -fuse-ctor-homing
- This optimization is similar to the optimizations that are enabled as part
- of -fno-standalone-debug. Here, Clang only emits type info for a
- non-trivial, non-aggregate C++ class in the modules that contain a
- definition of one of its constructors. This relies on the additional
- assumption that all classes that are not trivially constructible have a
- non-trivial constructor that is used somewhere. The negation,
- -fno-use-ctor-homing, ensures that constructor homing is not used.
-
- This flag is not enabled by default, and needs to be used with -cc1 or
- -Xclang.
+ This optimization is enabled by default as part of -fno-standalone-debug.
+ Clang only emits type info for a non-trivial, non-aggregate C++ class in
+ the modules that contain a definition of one of its constructors. This
+ relies on the additional assumption that all classes that are not trivially
+ constructible have a non-trivial constructor that is used somewhere. This
+ can be disabled using the cc1 flag -fno-use-ctor-homing.
.. option:: -g
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136188.468623.patch
Type: text/x-patch
Size: 1287 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221018/4a22f859/attachment.bin>
More information about the cfe-commits
mailing list