mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
[MC] Adding prettyPrintAsm to MCTargetStreamer to allow targets to specialize how instructions are printed to asm.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240050 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1308,7 +1308,10 @@ void MCAsmStreamer::EmitInstruction(const MCInst &Inst, const MCSubtargetInfo &S
|
||||
GetCommentOS() << "\n";
|
||||
}
|
||||
|
||||
InstPrinter->printInst(&Inst, OS, "", STI);
|
||||
if(getTargetStreamer())
|
||||
getTargetStreamer()->prettyPrintAsm(*InstPrinter, OS, Inst, STI);
|
||||
else
|
||||
InstPrinter->printInst(&Inst, OS, "", STI);
|
||||
|
||||
EmitEOL();
|
||||
}
|
||||
|
Reference in New Issue
Block a user