diff options
author | Fangrui Song <i@maskray.me> | 2023-06-26 17:58:29 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2023-06-26 17:58:29 -0700 |
commit | 665ccc19d38ccee9bba869ec9706610cefb10b0c (patch) | |
tree | e331e1f72c38f6fefa957bdeb6f4059dbfd1f547 /llvm/lib/CodeGen/MIRParser/MIParser.cpp | |
parent | 2c1108f44342019a67ce55bb98e2a05b57a70b9a (diff) | |
download | llvm-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/CodeGen/MIRParser/MIParser.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MIRParser/MIParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MIRParser/MIParser.cpp b/llvm/lib/CodeGen/MIRParser/MIParser.cpp index f2df73e..bfd9286 100644 --- a/llvm/lib/CodeGen/MIRParser/MIParser.cpp +++ b/llvm/lib/CodeGen/MIRParser/MIParser.cpp @@ -2523,7 +2523,7 @@ bool MIParser::parseCFIOperand(MachineOperand &Dest) { parseCFIAddressSpace(AddressSpace)) return true; CFIIndex = MF.addFrameInst(MCCFIInstruction::createLLVMDefAspaceCfa( - nullptr, Reg, Offset, AddressSpace)); + nullptr, Reg, Offset, AddressSpace, SMLoc())); break; case MIToken::kw_cfi_remember_state: CFIIndex = MF.addFrameInst(MCCFIInstruction::createRememberState(nullptr)); |