From b328f0ab04c6c0219b859408d9e6f04d46b5cf6c Mon Sep 17 00:00:00 2001 From: Jim Grosbach Date: Fri, 8 Oct 2010 21:36:13 +0000 Subject: [PATCH] Allow << streaming of MCOperand. llvm-svn: 116107 --- include/llvm/MC/MCInst.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/llvm/MC/MCInst.h b/include/llvm/MC/MCInst.h index dd19f9b18df..2b337e36245 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;