diff --git a/include/llvm/MC/MCInst.h b/include/llvm/MC/MCInst.h index dd19f9b18df..2b337e36245 100644 --- a/include/llvm/MC/MCInst.h +++ b/include/llvm/MC/MCInst.h @@ -155,6 +155,11 @@ public: StringRef Separator = " ") const; }; +inline raw_ostream& operator<<(raw_ostream &OS, const MCOperand &MO) { + MO.print(OS, 0); + return OS; +} + inline raw_ostream& operator<<(raw_ostream &OS, const MCInst &MI) { MI.print(OS, 0); return OS;