Add output stream operator for MCInst.
authorJim Grosbach <grosbach@apple.com>
Thu, 7 Oct 2010 20:38:37 +0000 (20:38 +0000)
committerJim Grosbach <grosbach@apple.com>
Thu, 7 Oct 2010 20:38:37 +0000 (20:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115974 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCInst.h

index 76515488ec42a2d0671c17ba05f1d4eb5ee0f83c..dd19f9b18df9af0ff90838f7b84c086662eb040a 100644 (file)
@@ -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