-
- Downloads
[DebugInfo] Switch to using constructor homing (-debug-info-kind=constructor)...
[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
Showing
- clang/include/clang/Basic/DebugInfoOptions.h 1 addition, 0 deletionsclang/include/clang/Basic/DebugInfoOptions.h
- clang/lib/Driver/ToolChains/Clang.cpp 8 additions, 7 deletionsclang/lib/Driver/ToolChains/Clang.cpp
- clang/test/CodeGenCXX/debug-info-template-deduction-guide.cpp 3 additions, 5 deletions...g/test/CodeGenCXX/debug-info-template-deduction-guide.cpp
- clang/test/Driver/cl-options.c 3 additions, 3 deletionsclang/test/Driver/cl-options.c
- clang/test/Driver/clang-g-opts.c 1 addition, 1 deletionclang/test/Driver/clang-g-opts.c
- clang/test/Driver/cuda-dwarf-2.cu 1 addition, 1 deletionclang/test/Driver/cuda-dwarf-2.cu
- clang/test/Driver/debug-options-as.c 1 addition, 1 deletionclang/test/Driver/debug-options-as.c
- clang/test/Driver/debug-options.c 5 additions, 5 deletionsclang/test/Driver/debug-options.c
- clang/test/Driver/integrated-as.s 5 additions, 5 deletionsclang/test/Driver/integrated-as.s
- clang/test/Driver/myriad-toolchain.c 1 addition, 1 deletionclang/test/Driver/myriad-toolchain.c
- clang/test/Driver/openmp-offload-gpu.c 1 addition, 1 deletionclang/test/Driver/openmp-offload-gpu.c
- clang/test/Driver/split-debug.c 4 additions, 4 deletionsclang/test/Driver/split-debug.c
- lldb/test/Shell/SymbolFile/PDB/Inputs/ClassLayoutTest.cpp 3 additions, 0 deletionslldb/test/Shell/SymbolFile/PDB/Inputs/ClassLayoutTest.cpp
Loading
Please register or sign in to comment