aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectThread.cpp
diff options
context:
space:
mode:
authorAmy Huang <akhuang@google.com>2021-07-14 17:08:31 -0700
committerAmy Huang <akhuang@google.com>2021-07-26 17:24:42 -0700
commit1a3bf2953a9209fdc4dbb6e99678e02a7fec019d (patch)
tree628614e154e602d2266a15570287fa8523d1638e /lldb/source/Commands/CommandObjectThread.cpp
parentc7b7638dfee54053553d9b22eeb8912ca42a06ec (diff)
downloadllvm-1a3bf2953a9209fdc4dbb6e99678e02a7fec019d.zip
llvm-1a3bf2953a9209fdc4dbb6e99678e02a7fec019d.tar.gz
llvm-1a3bf2953a9209fdc4dbb6e99678e02a7fec019d.tar.bz2
[DebugInfo] Switch to using constructor homing (-debug-info-kind=constructor) by default when debug info is enabled
Constructor homing reduces the amount of class type info that is emitted by emitting conmplete type info for a class only when a constructor for that class is emitted. This will mainly reduce the amount of duplicate debug info in object files. In Chrome enabling ctor homing decreased total build directory sizes by about 30%. It's also expected that some class types (such as unused classes) will no longer be emitted in the debug info. This is fine, since we wouldn't expect to need these types when debugging. In some cases (e.g. libc++, https://reviews.llvm.org/D98750), classes are used without calling the constructor. Since this is technically undefined behavior, enabling constructor homing should be fine. However Clang now has an attribute `__attribute__((standalone_debug))` that can be used on classes to ignore ctor homing. Bug: https://bugs.llvm.org/show_bug.cgi?id=46537 Differential Revision: https://reviews.llvm.org/D106084
Diffstat (limited to 'lldb/source/Commands/CommandObjectThread.cpp')
0 files changed, 0 insertions, 0 deletions