add an accessor.

llvm-svn: 73966
This commit is contained in:
Chris Lattner 2009-06-23 17:50:34 +00:00
parent 431cf567de
commit 83bfbfa195
1 changed files with 1 additions and 0 deletions

View File

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