[llvm] [DebugInfo] Add clang flag to enable function-level debug line attribution (PR #93985)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 4 17:55:15 PDT 2024
alx32 wrote:
> adding the assembly first, then using it for LLVM code generation.
> Which, I think, will mean needing to define some assembly directives
Thank you for the input! I am not very familiar with this part of the codebase. Could you provide some pointers to similar existing functionality or tests that would be relevant to what the first part of this change should be?
The most similar feature to the new `DW_AT_META_stmt_sequence` is `DW_AT_stmt_list`. In the assembly tests, `DW_AT_stmt_list` appears represented like this: https://github.com/llvm/llvm-project/blob/main/llvm/test/DebugInfo/X86/abbr_offset.s#L38
```assembly
.byte 16 # DW_AT_stmt_list
...
.long .Lline_table_start0 # DW_AT_stmt_list
```
It seems like this approach should also work for `DW_AT_META_stmt_sequence`.
Am I missing something, or is there another aspect I should be looking into?
https://github.com/llvm/llvm-project/pull/93985
More information about the llvm-commits
mailing list