[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 15:19:04 PDT 2024


================
@@ -123,6 +123,9 @@ class MCDwarfLoc {
   friend class MCContext;
   friend class MCDwarfLineEntry;
 
+  // DwarfDebug::endFunctionImpl needs to construct MCDwarfLoc(IsEndOfFunction)
+  friend class DwarfDebug;
----------------
rastogishubham wrote:

Hi @dwblaikie, this was done so that DwarfDebug can create and add a new `MCDwarfLineEntry` at the end of `DwarfDebug::endFunctionImpl`. Do you have a better way of being able to add an `DW_LNE_end_sequence` line entry from `DwarfDebug`?

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


More information about the llvm-commits mailing list