[llvm] [llvm][DebugInfo] Encode DW_AT_object_pointer on method declarations with DW_FORM_implicit_const (PR #124790)
Adrian Prantl via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 3 08:48:15 PDT 2025
================
@@ -1358,7 +1369,20 @@ void DwarfUnit::applySubprogramAttributes(const DISubprogram *SP, DIE &SPDie,
// Add arguments. Do not add arguments for subprogram definition. They will
// be handled while processing variables.
- constructSubprogramArguments(SPDie, Args);
+ //
+ // Encode the object pointer as an index instead of a DIE reference in order
+ // to minimize the affect on the .debug_info size.
+ if (std::optional<unsigned> ObjectPointerIndex =
+ constructSubprogramArguments(SPDie, Args)) {
+ if (getDwarfDebug().tuneForLLDB() &&
----------------
adrian-prantl wrote:
If this is spec conformant, I don't think we need to hide in LLDB tuning.
https://github.com/llvm/llvm-project/pull/124790
More information about the llvm-commits
mailing list