Add output stream operator for MCInst.

llvm-svn: 115974
This commit is contained in:
Jim Grosbach 2010-10-07 20:38:37 +00:00
parent 0df7ea4c24
commit ba05c68ce3
1 changed files with 4 additions and 0 deletions

View File

@ -155,6 +155,10 @@ public:
StringRef Separator = " ") const; StringRef Separator = " ") const;
}; };
inline raw_ostream& operator<<(raw_ostream &OS, const MCInst &MI) {
MI.print(OS, 0);
return OS;
}
} // end namespace llvm } // end namespace llvm