[clang] [llvm] [clang][DebugInfo] Emit unified (Itanium) mangled name to structor declarations (PR #154142)

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 20 09:21:52 PDT 2025


================
@@ -125,8 +125,11 @@ DEBUGOPT(DebugNameTable, 2, 0, Compatible)
 /// Whether to use DWARF base address specifiers in .debug_ranges.
 DEBUGOPT(DebugRangesBaseAddress, 1, 0, Compatible)
 
+/// Whether to add linkage names to constructor/destructor declarations.
+DEBUGOPT(DebugStructorDeclLinkageNames, 1, 0, Benign)
----------------
dwblaikie wrote:

Somewhere in the code (not sure if it's here, or at the usage, etc) we should probably say that this option is one of those awkward "workaround for a regression" but there's no real principled reason structor linkage names on decls should be handled differently from function linkage names on decls.

https://github.com/llvm/llvm-project/pull/154142


More information about the llvm-commits mailing list