X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FSupport%2FStatistic.cpp;h=f6645c6ae401132d93e7e12a2b15c7c6fcec1031;hb=8f77daef04355c00b78b645f5aae5694e7a8b631;hp=4db949a99a203326b93220b9645c1669e02ec4b5;hpb=c1d4d79d9350373569b6764d9c053e7b096bb7bc;p=oota-llvm.git diff --git a/lib/Support/Statistic.cpp b/lib/Support/Statistic.cpp index 4db949a99a2..f6645c6ae40 100644 --- a/lib/Support/Statistic.cpp +++ b/lib/Support/Statistic.cpp @@ -18,6 +18,7 @@ #include "Support/CommandLine.h" #include #include +#include bool DebugFlag; // DebugFlag - Exported boolean set by the -debug option @@ -29,10 +30,13 @@ unsigned StatisticBase::NumStats = 0; static cl::opt Enabled("stats", cl::desc("Enable statistics output from program")); +#ifndef NDEBUG // -debug - Command line option to enable the DEBUG statements in the passes. +// This flag may only be enabled in debug builds. static cl::opt Debug("debug", cl::desc("Enable debug output"), cl::Hidden, cl::location(DebugFlag)); +#endif struct StatRecord { std::string Value;