From 4b770c20778ccb5d2f304fa73e0522a7ab8c4623 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Thu, 27 Aug 2009 07:57:12 +0000 Subject: Add {MCInst,MCOperand}::{print,dump} git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80231 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/MC/MCInst.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/llvm/MC/MCInst.h') diff --git a/include/llvm/MC/MCInst.h b/include/llvm/MC/MCInst.h index 36011b9b65..857d29411e 100644 --- a/include/llvm/MC/MCInst.h +++ b/include/llvm/MC/MCInst.h @@ -22,6 +22,7 @@ #include "llvm/Support/DebugLoc.h" namespace llvm { +class raw_ostream; /// MCOperand - Instances of this class represent operands of the MCInst class. /// This is a simple discriminated union. @@ -119,6 +120,9 @@ public: Op.MCValueVal = Val; return Op; } + + void print(raw_ostream &OS) const; + void dump() const; }; @@ -142,6 +146,9 @@ public: void addOperand(const MCOperand &Op) { Operands.push_back(Op); } + + void print(raw_ostream &OS) const; + void dump() const; }; -- cgit v1.2.3-18-g5258