We don't need MCContext since D141951.
Reviewed By: zixuan-wu
Differential Revision: https://reviews.llvm.org/D141995
MCInst CInst;
bool Res = false;
if (EnableCompressedInst)
- Res = compressInst(CInst, Inst, getSTI(), S.getContext());
+ Res = compressInst(CInst, Inst, getSTI());
if (Res)
++CSKYNumInstrsCompressed;
S.emitInstruction((Res ? CInst : Inst), getSTI());
#include "CSKYGenCompressInstEmitter.inc"
void CSKYAsmPrinter::EmitToStreamer(MCStreamer &S, const MCInst &Inst) {
MCInst CInst;
- bool Res = compressInst(CInst, Inst, *Subtarget, OutStreamer->getContext());
+ bool Res = compressInst(CInst, Inst, *Subtarget);
if (Res)
++CSKYNumInstrsCompressed;
AsmPrinter::EmitToStreamer(*OutStreamer, Res ? CInst : Inst);