to print one instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78985
91177308-0d34-0410-b5e6-
96231b3b80d8
/// EmitComments - Pretty-print comments for basic blocks
void EmitComments(const MachineBasicBlock &MBB) const;
+ /// printMCInst - Print an MCInst for this target.
+ ///
+ /// Note, this is only a temporary hack to allow the MCStreamer to print
+ /// instructions, do not use this function outside of llvm-mc.
+ virtual void printMCInst(const MCInst *MI);
+
protected:
/// EmitZeros - Emit a block of zeros.
///
O << Offset;
}
+void AsmPrinter::printMCInst(const MCInst *MI) {
+ llvm_unreachable("MCInst printing unavailable on this target!");
+}
+
GCMetadataPrinter *AsmPrinter::GetOrCreateGCPrinter(GCStrategy *S) {
if (!S->usesMetadata())
return 0;
// New MCInst printing stuff.
void printInstruction(const MCInst *MI);
+ virtual void printMCInst(const MCInst *MI) { printInstruction(MI); }
+
void printSymbolOperand(const MachineOperand &MO);
void printOperand(const MCInst *MI, unsigned OpNo,
const char *Modifier = 0);