Files
llvm-project/clang/lib/CodeGen/CGDebugInfo.cpp
Haohai Wen 2531a6730d [clang][DebugInfo] Set linkage name for dynamic initializer/destructor debug info (#189794)
Compiler-generated dynamic initializers and atexit destructors for global
variables were missing DW_AT_linkage_name in their DWARF debug info.
For CodeView targets, different template instantiations of the same
variable all shared the same human-readable name, making them
indistinguishable in the debug info.

Set LinkageName to Fn->getName() if subprogram name does not match
the mangled name.
2026-04-22 09:38:32 +08:00

261 KiB