Adapt to LLVM EnableStatistics() change.

llvm-svn: 282533
This commit is contained in:
Matthias Braun 2016-09-27 19:38:59 +00:00
parent 5391ffb671
commit ec1c5a2048
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -188,7 +188,7 @@ public:
Injector(injector) {
DigestAnalyzerOptions();
if (Opts->PrintStats) {
llvm::EnableStatistics();
llvm::EnableStatistics(false);
TUTotalTimer = new llvm::Timer("Analyzer Total Time");
}
}