From: Jim Grosbach Date: Thu, 7 Oct 2010 20:38:37 +0000 (+0000) Subject: Add output stream operator for MCInst. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=069594a94f485729e82aec29d2e8d16eb47744fa;p=oota-llvm.git Add output stream operator for MCInst. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115974 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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