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

@@ -2,7 +2,6 @@
#include "swift/AST/ASTMangler.h"
#include "swift/Basic/Defer.h"
#include "swift/Sema/IDETypeChecking.h"
#include "swift/SIL/SILDeclRef.h"
#include <swift/APIDigester/ModuleAnalyzerNodes.h>
#include <algorithm>
@@ -1491,7 +1490,7 @@ static bool isProtocolRequirement(ValueDecl *VD) {
static bool requireWitnessTableEntry(ValueDecl *VD) {
if (auto *FD = dyn_cast<AbstractFunctionDecl>(VD)) {
return SILDeclRef::requiresNewWitnessTableEntry(FD);
return FD->requiresNewWitnessTableEntry();
}
return false;
}