mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[NFC] Remove the Legacy Semantic Queries Bit
Clients that wish to avoid semantic requests should decline to register those requests.
This commit is contained in:
@@ -978,7 +978,6 @@ static bool reportModuleDocInfo(CompilerInvocation Invocation,
|
||||
|
||||
ASTContext &Ctx = CI.getASTContext();
|
||||
registerIDERequestFunctions(Ctx.evaluator);
|
||||
Ctx.setLegacySemanticQueriesEnabled();
|
||||
|
||||
SourceTextInfo IFaceInfo;
|
||||
if (getModuleInterfaceInfo(Ctx, ModuleName, IFaceInfo))
|
||||
@@ -1106,9 +1105,6 @@ static bool reportSourceDocInfo(CompilerInvocation Invocation,
|
||||
CloseClangModuleFiles scopedCloseFiles(*Ctx.getClangModuleLoader());
|
||||
CI.performSema();
|
||||
|
||||
// Setup a typechecker for protocol conformance resolving.
|
||||
Ctx.setLegacySemanticQueriesEnabled();
|
||||
|
||||
SourceTextInfo SourceInfo;
|
||||
if (getSourceTextInfo(CI, SourceInfo))
|
||||
return true;
|
||||
@@ -1456,11 +1452,8 @@ findModuleGroups(StringRef ModuleName, ArrayRef<const char *> Args,
|
||||
return;
|
||||
}
|
||||
|
||||
ASTContext &Ctx = CI.getASTContext();
|
||||
// Setup a typechecker for protocol conformance resolving.
|
||||
Ctx.setLegacySemanticQueriesEnabled();
|
||||
|
||||
// Load standard library so that Clang importer can use it.
|
||||
ASTContext &Ctx = CI.getASTContext();
|
||||
auto *Stdlib = getModuleByFullName(Ctx, Ctx.StdlibModuleName);
|
||||
if (!Stdlib) {
|
||||
Error = "Cannot load stdlib.";
|
||||
|
||||
Reference in New Issue
Block a user