aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCDwarf.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2023-06-26 17:58:29 -0700
committerFangrui Song <i@maskray.me>2023-06-26 17:58:29 -0700
commit665ccc19d38ccee9bba869ec9706610cefb10b0c (patch)
treee331e1f72c38f6fefa957bdeb6f4059dbfd1f547 /llvm/lib/MC/MCDwarf.cpp
parent2c1108f44342019a67ce55bb98e2a05b57a70b9a (diff)
downloadllvm-665ccc19d38ccee9bba869ec9706610cefb10b0c.zip
llvm-665ccc19d38ccee9bba869ec9706610cefb10b0c.tar.gz
llvm-665ccc19d38ccee9bba869ec9706610cefb10b0c.tar.bz2
[MC] Add SMLoc to MCCFIInstruction
to help debug and report better diagnostics for functions like relaxDwarfCallFrameFragment (D153167). In MCStreamer, some emitCFI* functions already take a SMLoc argument. Add a SMLoc argument to the remaining functions that generate a MCCFIInstruction.
Diffstat (limited to 'llvm/lib/MC/MCDwarf.cpp')
-rw-r--r--llvm/lib/MC/MCDwarf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCDwarf.cpp b/llvm/lib/MC/MCDwarf.cpp
index 9506b5c..4d21098 100644
--- a/llvm/lib/MC/MCDwarf.cpp
+++ b/llvm/lib/MC/MCDwarf.cpp
@@ -1476,7 +1476,7 @@ void FrameEmitterImpl::emitCFIInstructions(ArrayRef<MCCFIInstruction> Instrs,
if (BaseLabel && Label) {
MCSymbol *ThisSym = Label;
if (ThisSym != BaseLabel) {
- Streamer.emitDwarfAdvanceFrameAddr(BaseLabel, ThisSym);
+ Streamer.emitDwarfAdvanceFrameAddr(BaseLabel, ThisSym, {});
BaseLabel = ThisSym;
}
}