forked from OSchip/llvm-project
[IR] Remove arg_operands and getNumArgOperands (NFC)
The last uses were removed on Oct 8, 2021 in commit46ef2e0bf9
. This is a relanding ofb2ee408dde
.
This commit is contained in:
parent
acafde09a3
commit
3e1c787b31
|
@ -1325,16 +1325,6 @@ public:
|
|||
bool arg_empty() const { return arg_end() == arg_begin(); }
|
||||
unsigned arg_size() const { return arg_end() - arg_begin(); }
|
||||
|
||||
// Legacy API names that duplicate the above and will be removed once users
|
||||
// are migrated.
|
||||
iterator_range<User::op_iterator> arg_operands() {
|
||||
return make_range(arg_begin(), arg_end());
|
||||
}
|
||||
iterator_range<User::const_op_iterator> arg_operands() const {
|
||||
return make_range(arg_begin(), arg_end());
|
||||
}
|
||||
unsigned getNumArgOperands() const { return arg_size(); }
|
||||
|
||||
Value *getArgOperand(unsigned i) const {
|
||||
assert(i < arg_size() && "Out of bounds!");
|
||||
return getOperand(i);
|
||||
|
|
Loading…
Reference in New Issue