[func-sig-opts] Expose the ValueDecl argument of SILArgument's

constructor in SILBasicBlock::createArgument.

By default the argument is nullptr so any place that currently does not
need to pass in the ValueDecl will not need to be updated given the new
behavior.

Swift SVN r22379
This commit is contained in:
Michael Gottesman
2014-09-30 03:08:50 +00:00
parent fe95e64321
commit ed124f6651
3 changed files with 6 additions and 5 deletions

View File

@@ -62,8 +62,8 @@ SILArgument *SILBasicBlock::replaceBBArg(unsigned i, SILType Ty, ValueDecl *D) {
return NewArg;
}
SILArgument *SILBasicBlock::createArgument(SILType Ty) {
return new (getModule()) SILArgument(Ty, this);
SILArgument *SILBasicBlock::createArgument(SILType Ty, const ValueDecl *D) {
return new (getModule()) SILArgument(Ty, this, D);
}
/// \brief Splits a basic block into two at the specified instruction.