projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f49810c
)
add an accessor.
author
Chris Lattner
<sabre@nondot.org>
Tue, 23 Jun 2009 17:50:34 +0000
(17:50 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 23 Jun 2009 17:50:34 +0000
(17:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73966
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/MC/MCInst.h
patch
|
blob
|
history
diff --git
a/include/llvm/MC/MCInst.h
b/include/llvm/MC/MCInst.h
index cadc23ab7109ef60cf7d16e4de5c3448db317c55..11b5c797e2702807cb66f4a179966a58e8b9e8e0 100644
(file)
--- 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);