Skip to content

Commit 3e1c787

Browse files
[IR] Remove arg_operands and getNumArgOperands (NFC)
The last uses were removed on Oct 8, 2021 in commit 46ef2e0. This is a relanding of b2ee408.
1 parent acafde0 commit 3e1c787

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

llvm/include/llvm/IR/InstrTypes.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,16 +1325,6 @@ class CallBase : public Instruction {
13251325
bool arg_empty() const { return arg_end() == arg_begin(); }
13261326
unsigned arg_size() const { return arg_end() - arg_begin(); }
13271327

1328-
// Legacy API names that duplicate the above and will be removed once users
1329-
// are migrated.
1330-
iterator_range<User::op_iterator> arg_operands() {
1331-
return make_range(arg_begin(), arg_end());
1332-
}
1333-
iterator_range<User::const_op_iterator> arg_operands() const {
1334-
return make_range(arg_begin(), arg_end());
1335-
}
1336-
unsigned getNumArgOperands() const { return arg_size(); }
1337-
13381328
Value *getArgOperand(unsigned i) const {
13391329
assert(i < arg_size() && "Out of bounds!");
13401330
return getOperand(i);

0 commit comments

Comments
 (0)