mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user