Skip to content

Commit fd2ab50

Browse files
committed
AST/Sema: Remove a couple of pointless FrontendStatsTracers
To get timings here, just use -fine-grained-timers.
1 parent 4ba8640 commit fd2ab50

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

lib/AST/UnqualifiedLookup.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,6 @@ void UnqualifiedLookupFactory::performUnqualifiedLookup() {
240240
auto localCounter = lookupCounter;
241241
(void)localCounter; // for debugging
242242
#endif
243-
FrontendStatsTracer StatsTracer(Ctx.Stats,
244-
"performUnqualifiedLookup",
245-
DC->getParentSourceFile());
246243

247244
if (options.contains(UnqualifiedLookupFlags::ModuleLookup)) {
248245
lookForAModuleWithTheGivenName(DC->getModuleScopeContext());

lib/Sema/CodeSynthesis.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -1693,11 +1693,6 @@ SynthesizeDefaultInitRequest::evaluate(Evaluator &evaluator,
16931693
NominalTypeDecl *decl) const {
16941694
auto &ctx = decl->getASTContext();
16951695

1696-
FrontendStatsTracer StatsTracer(ctx.Stats,
1697-
"define-default-ctor", decl);
1698-
PrettyStackTraceDecl stackTrace("defining default constructor for",
1699-
decl);
1700-
17011696
// Create the default constructor.
17021697
auto ctorKind = decl->isDistributedActor() ?
17031698
ImplicitConstructorKind::DefaultDistributedActor :

0 commit comments

Comments
 (0)