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 | 2597b79c887ddc5beaedfd69fed12dfdce238ab1 (patch) | |
tree | 0799c7ce2acbc72b97fa2a6a45517f7dfa02e922 /include | |
parent | 3617371c673a860250a1936b9428babad9a68bef (diff) | |
download | external_llvm-2597b79c887ddc5beaedfd69fed12dfdce238ab1.zip external_llvm-2597b79c887ddc5beaedfd69fed12dfdce238ab1.tar.gz external_llvm-2597b79c887ddc5beaedfd69fed12dfdce238ab1.tar.bz2 |
add an accessor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73966 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-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 cadc23a..11b5c79 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); |