[cfe-commits] r126559 - /cfe/trunk/tools/driver/cc1_main.cpp
Daniel Dunbar
daniel at zuster.org
Sat Feb 26 15:17:25 PST 2011
Author: ddunbar
Date: Sat Feb 26 17:17:25 2011
New Revision: 126559
URL: http://llvm.org/viewvc/llvm-project?rev=126559&view=rev
Log:
cc1: Fix stats printing by default when using -mllvm -stats.
Modified:
cfe/trunk/tools/driver/cc1_main.cpp
Modified: cfe/trunk/tools/driver/cc1_main.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/driver/cc1_main.cpp?rev=126559&r1=126558&r2=126559&view=diff
==============================================================================
--- cfe/trunk/tools/driver/cc1_main.cpp (original)
+++ cfe/trunk/tools/driver/cc1_main.cpp Sat Feb 26 17:17:25 2011
@@ -168,7 +168,7 @@
// 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;
More information about the cfe-commits
mailing list