[llvm] [DebugInfo][DWARF] Emit Per-Function Line Table Offsets and End Sequences (PR #110192)
Adrian Prantl via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 21 13:29:37 PDT 2024
================
@@ -527,6 +527,14 @@ DIE &DwarfCompileUnit::updateSubprogramScopeDIE(const DISubprogram *SP) {
*DD->getCurrentFunction()))
addFlag(*SPDie, dwarf::DW_AT_APPLE_omit_frame_ptr);
+ if (Asm->OutStreamer->getGenerateFuncLineTableOffsets() &&
+ Asm->OutStreamer->getCurrentFuncFirstLineStreamSym()) {
+ addSectionLabel(
+ *SPDie, dwarf::DW_AT_LLVM_stmt_sequence,
+ Asm->OutStreamer->getCurrentFuncFirstLineStreamSym(),
+ Asm->getObjFileLowering().getDwarfLineSection()->getBeginSymbol());
+ }
----------------
adrian-prantl wrote:
Sorry, I missed this when you pinged me originally.
There is no good reason for `-fcas-friendly-debug-info` to live downstream so we should try to unify both implementations.
@rastogishubham Can you take a look at both patches and see if we could rebase `-fcas-friendly-debug-info` on top of this?
https://github.com/llvm/llvm-project/pull/110192
More information about the llvm-commits
mailing list