[llvm] [DebugInfo][DWARF] Emit Per-Function Line Table Offsets and End Sequences (PR #110192)
Shubham Sandeep Rastogi via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 21 13:31:42 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());
+ }
----------------
rastogishubham wrote:
Thanks for the ping, let me take a look, I need to also familiarize myself with `-fcas-friendly-debug-info` code again
https://github.com/llvm/llvm-project/pull/110192
More information about the llvm-commits
mailing list