add an accessor.

llvm-svn: 73966
This commit is contained in:
Chris Lattner 2009-06-23 17:50:34 +00:00
parent 3e8033f7f7
commit 2b8ea5e0c8

View File

@ -112,6 +112,7 @@ public:
const MCOperand &getOperand(unsigned i) const { return Operands[i]; }
MCOperand &getOperand(unsigned i) { return Operands[i]; }
unsigned getNumOperands() const { return Operands.size(); }
void addOperand(const MCOperand &Op) {
Operands.push_back(Op);