aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/MC/MCInst.h
diff options
context:
space:
mode:
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;
};