[llvm] [MC] Add .loc_label instruction (PR #99710)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 18 17:37:04 PDT 2024


================
@@ -467,20 +467,22 @@ void MCObjectStreamer::emitDwarfAdvanceLineAddr(int64_t LineDelta,
 }
 
 void MCObjectStreamer::emitDwarfLineEndEntry(MCSection *Section,
-                                             MCSymbol *LastLabel) {
+                                             MCSymbol *LastLabel,
+                                             MCSymbol *EndLabel) {
   // Emit a DW_LNE_end_sequence for the end of the section.
   // Use the section end label to compute the address delta and use INT64_MAX
   // as the line delta which is the signal that this is actually a
   // DW_LNE_end_sequence.
-  MCSymbol *SectionEnd = endSection(Section);
+  if (!EndLabel)
----------------
MaskRay wrote:

The comment should be updated to state what a non-null EndLabel does.

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


More information about the llvm-commits mailing list