[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:
Robert Widmann
2020-03-19 10:39:05 -07:00
parent f6662a8c9a
commit 6d60d01420
12 changed files with 9 additions and 83 deletions

View File

@@ -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.";