aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-10-08 21:36:13 +0000
committerJim Grosbach <grosbach@apple.com>2010-10-08 21:36:13 +0000
commit6313944845265dbf38e68046a047d78162f5b89e (patch)
treeb90a823a702694682c40d004c82e1d05a98ea0d8
parent54f32e6575d0c1b920ae5151c229f1187bae0cbf (diff)
Allow << streaming of MCOperand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116107 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/MC/MCInst.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/MC/MCInst.h b/include/llvm/MC/MCInst.h
index dd19f9b18d..2b337e3624 100644
--- a/include/llvm/MC/MCInst.h
+++ b/include/llvm/MC/MCInst.h
@@ -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;