From f28d6311896d7de6221465c3918fdc5cbd7d5a6f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 23 Jun 2009 17:50:34 +0000 Subject: [PATCH] add an accessor. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73966 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/MC/MCInst.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/llvm/MC/MCInst.h b/include/llvm/MC/MCInst.h index cadc23ab710..11b5c797e27 100644 --- a/include/llvm/MC/MCInst.h +++ b/include/llvm/MC/MCInst.h @@ -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); -- 2.34.1