[llvm] [DebugInfo][DWARF] Emit Per-Function Line Table Offsets and End Sequences (PR #110192)

Zhaoxuan Jiang via llvm-commits llvm-commits at lists.llvm.org
Tue May 20 05:25:38 PDT 2025


================
@@ -2223,6 +2223,9 @@ void DwarfDebug::beginFunctionImpl(const MachineFunction *MF) {
     return;
 
   DwarfCompileUnit &CU = getOrCreateDwarfCompileUnit(SP->getUnit());
+  FunctionLineTableLabel = CU.emitFuncLineTableOffsets()
----------------
nocchijiang wrote:

I also suggest adding an assertion in `MCDwarfLineEntry::setEndLabel` to ensure that `this->LineStreamLabel == nullptr`. I found a case where `LineStreamLabel` was emitted twice, which triggered a complaint from `MCStreamer::emitLabel`, which is the reason why I caught the potential bug here.

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


More information about the llvm-commits mailing list