mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #30109 from CodaFi/lies-more-lies-and-statistics
[Frontend] Clean Up Usage of UnifiedStatsReporter
This commit is contained in:
@@ -91,13 +91,13 @@ ConstraintSystem::~ConstraintSystem() {
|
||||
void ConstraintSystem::incrementScopeCounter() {
|
||||
CountScopes++;
|
||||
// FIXME: (transitional) increment the redundant "always-on" counter.
|
||||
if (getASTContext().Stats)
|
||||
getASTContext().Stats->getFrontendCounters().NumConstraintScopes++;
|
||||
if (auto *Stats = getASTContext().Stats)
|
||||
Stats->getFrontendCounters().NumConstraintScopes++;
|
||||
}
|
||||
|
||||
void ConstraintSystem::incrementLeafScopes() {
|
||||
if (getASTContext().Stats)
|
||||
getASTContext().Stats->getFrontendCounters().NumLeafScopes++;
|
||||
if (auto *Stats = getASTContext().Stats)
|
||||
Stats->getFrontendCounters().NumLeafScopes++;
|
||||
}
|
||||
|
||||
bool ConstraintSystem::hasFreeTypeVariables() {
|
||||
|
||||
Reference in New Issue
Block a user