add accessors

llvm-svn: 63478
This commit is contained in:
Chris Lattner 2009-01-31 07:34:19 +00:00
parent 585cfb2ce7
commit 19efe30264
1 changed files with 9 additions and 0 deletions

View File

@ -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; }
// ---------------------------------------------------------------------------