APIDigester: Break cycle between Frontend and APIDigester targets.

Also push a utility that was previously on `SILDeclRef` down to AST so that the SIL dependency can be removed entirely from APIDigester.
This commit is contained in:
Allan Shortlidge
2022-10-26 19:06:36 -07:00
parent e2a41d126a
commit 0d37f52fe0
7 changed files with 12 additions and 17 deletions

View File

@@ -1233,11 +1233,7 @@ bool SILDeclRef::requiresNewVTableEntry() const {
}
bool SILDeclRef::requiresNewWitnessTableEntry() const {
return requiresNewWitnessTableEntry(cast<AbstractFunctionDecl>(getDecl()));
}
bool SILDeclRef::requiresNewWitnessTableEntry(AbstractFunctionDecl *func) {
return func->getOverriddenDecls().empty();
return cast<AbstractFunctionDecl>(getDecl())->requiresNewWitnessTableEntry();
}
SILDeclRef SILDeclRef::getOverridden() const {