[PATCH] D95911: [Docs] Add some documentation for constructor homing, a debug info optimization (-fuse-ctor-homing)
Amy Huang via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 3 15:27:25 PST 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG26e9c99010b6: [Docs] Add some documentation for constructor homing, a debug info optimization… (authored by akhuang).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D95911/new/
https://reviews.llvm.org/D95911
Files:
clang/docs/UsersManual.rst
Index: clang/docs/UsersManual.rst
===================================================================
--- clang/docs/UsersManual.rst
+++ clang/docs/UsersManual.rst
@@ -2504,6 +2504,18 @@
**-fno-standalone-debug** option can be used to get to turn on the
vtable-based optimization described above.
+.. 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.
+
+ This flag is not enabled by default, and needs to be used with -cc1 or
+ -Xclang.
+
.. option:: -g
Generate complete debug info.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95911.321245.patch
Type: text/x-patch
Size: 903 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210203/9dbafe4c/attachment.bin>
More information about the cfe-commits
mailing list