mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Remove SILBasicBlock::getBBArgIndex(SILArgument *) in favor of SILArgument::getIndex().
The index is a property of the argument. There is no reason from a modeling perspective to go through the BB to get it. Swift SVN r21338
This commit is contained in:
@@ -135,7 +135,6 @@ public:
|
||||
const SILArgument *getBBArg(unsigned i) const { return BBArgList[i]; }
|
||||
SILArgument *getBBArg(unsigned i) { return BBArgList[i]; }
|
||||
SILArgument *replaceBBArg(unsigned i, SILType Ty, ValueDecl *D =nullptr);
|
||||
size_t getBBArgIndex(SILArgument *Arg);
|
||||
|
||||
/// \brief Remove all block arguments.
|
||||
void dropAllArgs() { BBArgList.clear(); }
|
||||
|
||||
Reference in New Issue
Block a user