llvm.org GIT mirror llvm / bda9dfd
add accessors git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63478 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 11 years ago
1 changed file(s) with 9 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
9999 "Cannot mutate a constant with setOperand!");
100100 OperandList[i] = Val;
101101 }
102 const Use &getOperandUse(unsigned i) const {
103 assert(i < NumOperands && "getOperand() out of range!");
104 return OperandList[i];
105 }
106 Use &getOperandUse(unsigned i) {
107 assert(i < NumOperands && "getOperand() out of range!");
108 return OperandList[i];
109 }
110
102111 unsigned getNumOperands() const { return NumOperands; }
103112
104113 // ---------------------------------------------------------------------------