[llvm-commits] [llvm] r115974 - /llvm/trunk/include/llvm/MC/MCInst.h
Jim Grosbach
grosbach at apple.com
Thu Oct 7 13:38:37 PDT 2010
Author: grosbach
Date: Thu Oct 7 15:38:37 2010
New Revision: 115974
URL: http://llvm.org/viewvc/llvm-project?rev=115974&view=rev
Log:
Add output stream operator for MCInst.
Modified:
llvm/trunk/include/llvm/MC/MCInst.h
Modified: llvm/trunk/include/llvm/MC/MCInst.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCInst.h?rev=115974&r1=115973&r2=115974&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCInst.h (original)
+++ llvm/trunk/include/llvm/MC/MCInst.h Thu Oct 7 15:38:37 2010
@@ -155,6 +155,10 @@
StringRef Separator = " ") const;
};
+inline raw_ostream& operator<<(raw_ostream &OS, const MCInst &MI) {
+ MI.print(OS, 0);
+ return OS;
+}
} // end namespace llvm
More information about the llvm-commits
mailing list