mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user