summaryrefslogtreecommitdiff
path: root/include/llvm/MC/MCInst.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-27 07:57:12 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-27 07:57:12 +0000
commit4b770c20778ccb5d2f304fa73e0522a7ab8c4623 (patch)
tree6a809fe4972845cc636f464a85fee286b3f89ef0 /include/llvm/MC/MCInst.h
parentf2f6b0c0e9088da25a0367c88263ef8e7637a82c (diff)
downloadllvm-4b770c20778ccb5d2f304fa73e0522a7ab8c4623.tar.gz
llvm-4b770c20778ccb5d2f304fa73e0522a7ab8c4623.tar.bz2
llvm-4b770c20778ccb5d2f304fa73e0522a7ab8c4623.tar.xz
Add {MCInst,MCOperand}::{print,dump}
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80231 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCInst.h')
-rw-r--r--include/llvm/MC/MCInst.h7
1 files changed, 7 insertions, 0 deletions
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;
};