From: Jim Grosbach Date: Fri, 8 Oct 2010 21:36:13 +0000 (+0000) Subject: Allow << streaming of MCOperand. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6313944845265dbf38e68046a047d78162f5b89e;p=oota-llvm.git Allow << streaming of MCOperand. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116107 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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;