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

via llvm-commits llvm-commits at lists.llvm.org
Fri May 30 16:12:54 PDT 2025


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

Minimal repro via:
```
llc -O3 -mcpu=x86-64 -emit-func-debug-line-table-offsets -filetype=obj  debug-line-lto-bug.ll
```

Where `debug-line-lto-bug.ll` is https://gist.github.com/alx32/5d5db8dc9818e17e59e47c4f70d91ad1

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


More information about the llvm-commits mailing list