[llvm] [llvm][DebugInfo] Encode DW_AT_object_pointer on method declarations with DW_FORM_implicit_const (PR #124790)
Michael Buch via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 4 04:20:22 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() &&
----------------
Michael137 wrote:
GDB is currently not equipped with handling this unfortunately. See https://github.com/llvm/llvm-project/pull/124790#issuecomment-2621229617
https://github.com/llvm/llvm-project/pull/124790
More information about the llvm-commits
mailing list