debuginfo: Line-tables-only mode emits much more debuginfo than Clang #64405
Closed
Description
We probably could emit less debuginfo when compiling with -Cdebuginfo=1
than we do at the moment. Clang 8.0 emits a lot less debuginfo when compiling with -gline-tables-only
, with debuginfo not containing any DW_TAG_subprogram
entries; while stepping through the code with gdb still works.
However, reducing the amount of debuginfo emitted should be done with care since external tools rely on the current behavior (see e.g. #60020).
Metadata
Assignees
Labels
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Debugging information in compiled programs (DWARF, PDB, etc.)Category: PRs that clean code up or issues documenting cleanup.Category: A feature request, i.e: not implemented / a PR.Relevant to the compiler team, which will review and decide on the PR/issue.