forked from OSchip/llvm-project
Adapt to LLVM EnableStatistics() change.
llvm-svn: 282533
This commit is contained in:
parent
5391ffb671
commit
ec1c5a2048
|
@ -859,7 +859,7 @@ bool CompilerInstance::ExecuteAction(FrontendAction &Act) {
|
|||
createFrontendTimer();
|
||||
|
||||
if (getFrontendOpts().ShowStats || !getFrontendOpts().StatsFile.empty())
|
||||
llvm::EnableStatistics();
|
||||
llvm::EnableStatistics(false);
|
||||
|
||||
for (const FrontendInputFile &FIF : getFrontendOpts().Inputs) {
|
||||
// Reset the ID tables if we are reusing the SourceManager and parsing
|
||||
|
|
|
@ -188,7 +188,7 @@ public:
|
|||
Injector(injector) {
|
||||
DigestAnalyzerOptions();
|
||||
if (Opts->PrintStats) {
|
||||
llvm::EnableStatistics();
|
||||
llvm::EnableStatistics(false);
|
||||
TUTotalTimer = new llvm::Timer("Analyzer Total Time");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue