================
@@ -390,6 +391,10 @@ bool MCObjectStreamer::mayHaveInstructions(MCSection &Sec)
const {
void MCObjectStreamer::emitInstruction(const MCInst &Inst,
const MCSubtargetInfo &STI) {
+ if (LFIRewriter && LFIRewriter->isEnabled() &&
+ LFIRewriter->rewriteInst(Inst, *this, STI))
+ return;
----------------
aengelke wrote:
How is this supposed to work? What exactly does rewriteInst do? How does it
emit the instruction?
Can we fold this into a single function call?
https://github.com/llvm/llvm-project/pull/172906
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits