[X86AsmBackend] Define reset() hook (#213409)
Noticed when reviewing #175830: MCObjectStreamer::reset frees the fragments PendingBA and PrevInstPosition point into, but X86AsmBackend keeps them. Define the hook.
This commit is contained in:
parent
9a15298e96
commit
d9e699957d
1 changed files with 7 additions and 0 deletions
|
|
@ -163,6 +163,13 @@ public:
|
|||
AllowAutoPadding && TargetPrefixMax != 0 && X86PadForBranchAlign;
|
||||
}
|
||||
|
||||
void reset() override {
|
||||
PrevInst = MCInst();
|
||||
PrevInstOpcode = 0;
|
||||
PendingBA = nullptr;
|
||||
PrevInstPosition = {};
|
||||
}
|
||||
|
||||
void emitInstructionBegin(MCObjectStreamer &OS, const MCInst &Inst,
|
||||
const MCSubtargetInfo &STI);
|
||||
void emitInstructionEnd(MCObjectStreamer &OS, const MCInst &Inst);
|
||||
|
|
|
|||
Loading…
Reference in a new issue