Allow << streaming of MCOperand.

llvm-svn: 116107
This commit is contained in:
Jim Grosbach 2010-10-08 21:36:13 +00:00
parent 9d127e625c
commit b328f0ab04

View File

@ -155,6 +155,11 @@ public:
StringRef Separator = " ") const; 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) { inline raw_ostream& operator<<(raw_ostream &OS, const MCInst &MI) {
MI.print(OS, 0); MI.print(OS, 0);
return OS; return OS;