AST: Move expensive generic signature checks to GenericSignature.cpp

This removes the final dependency on GenericSignatureBuilder.h.
This commit is contained in:
Slava Pestov
2021-10-30 00:28:28 -04:00
parent 25ac1f5471
commit 0eb66222e2
5 changed files with 124 additions and 125 deletions

View File

@@ -30,7 +30,7 @@
#include "swift/AST/FileSystem.h"
#include "swift/AST/FineGrainedDependencies.h"
#include "swift/AST/FineGrainedDependencyFormat.h"
#include "swift/AST/GenericSignatureBuilder.h"
#include "swift/AST/GenericSignature.h"
#include "swift/AST/IRGenOptions.h"
#include "swift/AST/IRGenRequests.h"
#include "swift/AST/NameLookup.h"
@@ -469,7 +469,7 @@ static void verifyGenericSignaturesIfNeeded(const FrontendOptions &opts,
if (verifyGenericSignaturesInModule.empty())
return;
if (auto module = Context.getModuleByName(verifyGenericSignaturesInModule))
GenericSignatureBuilder::verifyGenericSignaturesInModule(module);
swift::validateGenericSignaturesInModule(module);
}
static bool dumpAndPrintScopeMap(const CompilerInstance &Instance,