diff options
author | Chris Lattner <sabre@nondot.org> | 2009-06-23 17:50:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-06-23 17:50:34 +0000 |
commit | f28d6311896d7de6221465c3918fdc5cbd7d5a6f (patch) | |
tree | 0799c7ce2acbc72b97fa2a6a45517f7dfa02e922 /include/llvm/MC/MCInst.h | |
parent | f49810c7e60807c43a68ab02c936a4ee77a4d2cf (diff) | |
download | llvm-f28d6311896d7de6221465c3918fdc5cbd7d5a6f.tar.gz llvm-f28d6311896d7de6221465c3918fdc5cbd7d5a6f.tar.bz2 llvm-f28d6311896d7de6221465c3918fdc5cbd7d5a6f.tar.xz |
add an accessor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73966 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCInst.h')
-rw-r--r-- | include/llvm/MC/MCInst.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/MC/MCInst.h b/include/llvm/MC/MCInst.h index cadc23ab71..11b5c797e2 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); |