[llvm] [MC][DebugInfo] Emit linetable entries with known offsets immediately (PR #134677)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu May 8 21:01:33 PDT 2025


================
@@ -464,6 +464,19 @@ void MCObjectStreamer::emitDwarfAdvanceLineAddr(int64_t LineDelta,
                          Label, PointerSize);
     return;
   }
+
+  // If the two labels are within the same fragment and it's a plain data
----------------
MaskRay wrote:

If the two labels are within the same data fragment, then the address-offset is ...

(a data fragment is a MCDataFragment. There is no special or plain data fragment)

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


More information about the llvm-commits mailing list