SIL: Rename SILFunction::hasSelfMetadataParam()/getSelfMetadataArgument()

These are only for class types and are related to the usage of the
DynamicSelfType, so rename them to {has,get}DynamicSelfMetadata().
This commit is contained in:
Slava Pestov
2020-10-23 17:49:40 -04:00
parent b385332281
commit 360e406d3a
13 changed files with 60 additions and 57 deletions

View File

@@ -850,7 +850,7 @@ void LifetimeChecker::handleLoadForTypeOfSelfUse(DIMemoryUse &Use) {
break;
}
assert(valueMetatype);
SILValue metatypeArgument = load->getFunction()->getSelfMetadataArgument();
SILValue metatypeArgument = load->getFunction()->getDynamicSelfMetadata();
// SILFunction parameter types never have a DynamicSelfType, since it only
// makes sense in the context of a given method's body. Since the