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