[llvm] [DebugInfo][DwarfDebug] Scan for inlined subprograms in LexicalScopes::initialize() (PR #226536)
Vladislav Dzhidzhoev via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 1 05:03:40 PDT 2026
dzhidzhoev wrote:
Thank you for the feedback, and for performance testing!
> Yeah, seems a bit unfortunate to have to do all that work - and I avoided it until now by deferring things (like adding instance (concrete or inlined)-invariant features (eg: name) to the concrete DIE) until the end of the module,
Deferring things would be nicer, I agree. The obstacle for me was that DwarfUnit relies the knowledge of a DIE parent in a lot of places. It seems that @chbessonova found a better way to do that (without rewiring the logic in DwarfUnit), by putting local entities into a temporary DIE in a CU, and reattaching local entities to the right scopes later in `DwarfDebug::endModule()`. We will test this patch, and make a new PR if it works.
https://github.com/llvm/llvm-project/pull/226536
More information about the llvm-commits
mailing list