mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[gardening] Drop BB from all argument related code in SILBasicBlock.
Before this commit all code relating to handling arguments in SILBasicBlock had somewhere in the name BB. This is redundant given that the class's name is already SILBasicBlock. This commit drops those names. Some examples: getBBArg() => getArgument() BBArgList => ArgumentList bbarg_begin() => args_begin()
This commit is contained in:
@@ -152,7 +152,7 @@ void SILFunction::numberValues(llvm::DenseMap<const ValueBase*,
|
||||
unsigned> &ValueToNumberMap) const {
|
||||
unsigned idx = 0;
|
||||
for (auto &BB : *this) {
|
||||
for (auto I = BB.bbarg_begin(), E = BB.bbarg_end(); I != E; ++I)
|
||||
for (auto I = BB.args_begin(), E = BB.args_end(); I != E; ++I)
|
||||
ValueToNumberMap[*I] = idx++;
|
||||
|
||||
for (auto &I : BB)
|
||||
|
||||
Reference in New Issue
Block a user