mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-07 03:36:53 +00:00
add accessors
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63478 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
08d2cc70fe
commit
bda9dfd5ab
@ -100,6 +100,15 @@ public:
|
||||
"Cannot mutate a constant with setOperand!");
|
||||
OperandList[i] = Val;
|
||||
}
|
||||
const Use &getOperandUse(unsigned i) const {
|
||||
assert(i < NumOperands && "getOperand() out of range!");
|
||||
return OperandList[i];
|
||||
}
|
||||
Use &getOperandUse(unsigned i) {
|
||||
assert(i < NumOperands && "getOperand() out of range!");
|
||||
return OperandList[i];
|
||||
}
|
||||
|
||||
unsigned getNumOperands() const { return NumOperands; }
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user