Skip to content

Commit 2ca30c6

Browse files
committed
Remove NumLookupInModule counter
We now have an equivalent counter for LookupInModuleRequest.
1 parent e04b56b commit 2ca30c6

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

include/swift/Basic/Statistics.def

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,6 @@ FRONTEND_STATISTIC(AST, NumLookupQualifiedInModule)
147147
/// Number of qualified lookups into AnyObject.
148148
FRONTEND_STATISTIC(AST, NumLookupQualifiedInAnyObject)
149149

150-
/// Number of lookups into a module and its imports.
151-
FRONTEND_STATISTIC(AST, NumLookupInModule)
152-
153150
/// Number of local lookups into a module.
154151
FRONTEND_STATISTIC(AST, NumModuleLookupValue)
155152

lib/AST/ModuleNameLookup.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,7 @@ llvm::Expected<QualifiedLookupResult> LookupInModuleRequest::evaluate(
236236
assert(moduleScopeContext->isModuleScopeContext());
237237

238238
auto &ctx = moduleOrFile->getASTContext();
239-
auto *stats = ctx.Stats;
240-
if (stats)
241-
stats->getFrontendCounters().NumLookupInModule++;
242-
243-
FrontendStatsTracer tracer(stats, "lookup-in-module");
239+
FrontendStatsTracer tracer(ctx.Stats, "lookup-in-module");
244240

245241
QualifiedLookupResult decls;
246242
LookupByName lookup(ctx, resolutionKind, name, lookupKind);

0 commit comments

Comments
 (0)