Skip to content

Commit 2a14088

Browse files
author
Jim Grosbach
committed
Allow << streaming of MCOperand.
llvm-svn: 116107
1 parent 05cae83 commit 2a14088

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/include/llvm/MC/MCInst.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,11 @@ class MCInst {
155155
StringRef Separator = " ") const;
156156
};
157157

158+
inline raw_ostream& operator<<(raw_ostream &OS, const MCOperand &MO) {
159+
MO.print(OS, 0);
160+
return OS;
161+
}
162+
158163
inline raw_ostream& operator<<(raw_ostream &OS, const MCInst &MI) {
159164
MI.print(OS, 0);
160165
return OS;

0 commit comments

Comments
 (0)