[llvm] [DebugInfo] Emit linkage name into DWARF for types for Swift (PR #112802)

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 18 11:22:18 PDT 2024


dwblaikie wrote:

> > Out of curiosity: what's the need/use case?
> 
> To expand a bit on this: the Swift compiler emits _only_ the type mangled name in debug information, and LLDB uses those mangled names as keys to look up size, alignment, fields, etc from either reflection metadata or Swift modules.

so why is this code change needed? Because up until now the mangled name has been put in DW_AT_name, so didn't need LLVM-side support? Or it's been in downstream patches that are being upstreamed? It'd be good to know about what's new/different/etc to add this change now (even if it's just "we've been doing this downstream for a while, and now have time to upstream it" (in which case a bit of info about the original decision that added the functionality would be handy too - but I think you've mostly covered that in this comment, perhaps))


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


More information about the llvm-commits mailing list