[llvm] [MC] Add .loc_label instruction (PR #99710)
Paul T Robinson via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 29 12:05:50 PDT 2024
================
@@ -189,11 +191,24 @@ void MCDwarfLineTable::emitOne(
for (const MCDwarfLineEntry &LineEntry : LineEntries) {
MCSymbol *Label = LineEntry.getLabel();
const MCAsmInfo *asmInfo = MCOS->getContext().getAsmInfo();
+
+ if (LineEntry.LineStreamLabel) {
+ if (!IsAtStartSeq) {
+ MCOS->emitDwarfLineEndEntry(Section, LastLabel);
+ init();
+ }
+ MCOS->emitLabel(LineEntry.LineStreamLabel, LineEntry.StreamLabelDefLoc);
+
+ IsAtStartSeq = true;
+ continue;
+ }
+
if (LineEntry.IsEndEntry) {
MCOS->emitDwarfAdvanceLineAddr(INT64_MAX, LastLabel, Label,
asmInfo->getCodePointerSize());
init();
EndEntryEmitted = true;
+ IsAtStartSeq = true;
----------------
pogo59 wrote:
Redundant, `init()` does this.
https://github.com/llvm/llvm-project/pull/99710
More information about the llvm-commits
mailing list