From b59c79f727cffcab3e86f27d381db9ff4d274f9e Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sat, 26 Feb 2011 23:17:25 +0000 Subject: [PATCH] cc1: Fix stats printing by default when using -mllvm -stats. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126559 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/driver/cc1_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/driver/cc1_main.cpp b/tools/driver/cc1_main.cpp index 7fb394fa5b..ea130afb99 100644 --- a/tools/driver/cc1_main.cpp +++ b/tools/driver/cc1_main.cpp @@ -168,7 +168,7 @@ int cc1_main(const char **ArgBegin, const char **ArgEnd, // When running with -disable-free, don't do any destruction or shutdown. if (Clang->getFrontendOpts().DisableFree) { - if (Clang->getFrontendOpts().ShowStats) + if (llvm::AreStatisticsEnabled || Clang->getFrontendOpts().ShowStats) llvm::PrintStatistics(); Clang.take(); return !Success; -- 2.40.0