Allow << streaming of MCOperand.
authorJim Grosbach <grosbach@apple.com>
Fri, 8 Oct 2010 21:36:13 +0000 (21:36 +0000)
committerJim Grosbach <grosbach@apple.com>
Fri, 8 Oct 2010 21:36:13 +0000 (21:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116107 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCInst.h

index dd19f9b18df9af0ff90838f7b84c086662eb040a..2b337e36245cf7839ff8fc1fe938e9aa64038818 100644 (file)
@@ -155,6 +155,11 @@ public:
                    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;