Add -print-zero-stats option and use it in ensure_no_astgen.swift

to verify ExportedSourceFileRequest == 0.

In release mode only non-zero stats are printed by default now.

Fix diagnostic when compiler is built without statistics support.
This commit is contained in:
Ryan Mansfield
2024-10-10 14:45:41 -04:00
parent 844d103f0d
commit 1001f9eb41
9 changed files with 35 additions and 15 deletions

View File

@@ -522,6 +522,7 @@ createStatsReporter(const llvm::opt::InputArgList *ArgList,
false,
false,
false,
false,
false);
}