[llvm-commits] [llvm] r116107 - /llvm/trunk/include/llvm/MC/MCInst.h

Jim Grosbach grosbach at apple.com
Fri Oct 8 14:36:13 PDT 2010


Author: grosbach
Date: Fri Oct  8 16:36:13 2010
New Revision: 116107

URL: http://llvm.org/viewvc/llvm-project?rev=116107&view=rev
Log:
Allow << streaming of MCOperand.

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=116107&r1=116106&r2=116107&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCInst.h (original)
+++ llvm/trunk/include/llvm/MC/MCInst.h Fri Oct  8 16:36:13 2010
@@ -155,6 +155,11 @@
                    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) {
   MI.print(OS, 0);
   return OS;





More information about the llvm-commits mailing list