aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCDwarf.cpp
diff options
context:
space:
mode:
authorEsme-Yi <esme.yi@ibm.com>2021-03-12 04:42:19 +0000
committerEsme-Yi <esme.yi@ibm.com>2021-03-12 04:45:08 +0000
commitfafbdfe63bb0a24c39268c02778eccef71fb1d76 (patch)
treea85d5ba1c4037a77b05e3246f9aaed8bdadbcb60 /llvm/lib/MC/MCDwarf.cpp
parentb937908c371898555f676a64890ba07ee310afae (diff)
downloadllvm-fafbdfe63bb0a24c39268c02778eccef71fb1d76.zip
llvm-fafbdfe63bb0a24c39268c02778eccef71fb1d76.tar.gz
llvm-fafbdfe63bb0a24c39268c02778eccef71fb1d76.tar.bz2
[Debug-Info] Add names for the debug line prologue.
Summary: This is a minor patch to add names for the debug line prologue, as a follow-up of D95998. Reviewed By: dblaikie, ikudrin, shchenz Differential Revision: https://reviews.llvm.org/D98383
Diffstat (limited to 'llvm/lib/MC/MCDwarf.cpp')
-rw-r--r--llvm/lib/MC/MCDwarf.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/MC/MCDwarf.cpp b/llvm/lib/MC/MCDwarf.cpp
index 6c23d33..51e3ac9 100644
--- a/llvm/lib/MC/MCDwarf.cpp
+++ b/llvm/lib/MC/MCDwarf.cpp
@@ -476,10 +476,9 @@ MCDwarfLineTableHeader::Emit(MCStreamer *MCOS, MCDwarfLineTableParams Params,
MCOS->emitInt8(0); // Segment selector; same as EmitGenDwarfAranges.
}
- MCSymbol *ProStartSym = context.createTempSymbol();
-
- // Create a symbol for the end of the prologue (to be set when we get there).
- MCSymbol *ProEndSym = context.createTempSymbol(); // Lprologue_end
+ // Create symbols for the start/end of the prologue.
+ MCSymbol *ProStartSym = context.createTempSymbol("prologue_start");
+ MCSymbol *ProEndSym = context.createTempSymbol("prologue_end");
// Length of the prologue, is the next 4 bytes (8 bytes for DWARF64). This is
// actually the length from after the length word, to the end of the prologue.