[llvm] [DebugInfo][DWARF] Utilize DW_AT_LLVM_stmt_sequence attr in line table lookups (PR #123391)

Greg Clayton via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 21 09:33:12 PST 2025


================
@@ -857,7 +860,7 @@ Error DWARFDebugLine::LineTable::parse(
       }
       if (OS)
         State.Row.dump(*OS);
-      State.appendRowToMatrix();
+      State.appendRowToMatrix(LineTableSeqOffset);
----------------
clayborg wrote:

When ever we create a new Sequenced within `State` we can update the line offset in the current sequence. We can force this by having the `Seqeuence` constructor take an offset if possible and then the offset can be const. Or we can just do something like:
```
State.SetSequenceOffset(uint64_t Offset);
```
And call this before entering the while look and after we get a `DW_LNE_end_sequence`

https://github.com/llvm/llvm-project/pull/123391


More information about the llvm-commits mailing list