summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Statistic.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-02-09 21:13:57 +0000
committerChris Lattner <sabre@nondot.org>2003-02-09 21:13:57 +0000
commitc15e3d93f2d61d26c2a6243f6386358608537541 (patch)
tree35666f02f80b730d997c7a76c6896044348c36de /llvm/lib/Support/Statistic.cpp
parentb0208e1ae3ea33ffdb8911d81802ee121ac0e681 (diff)
downloadbcm5719-llvm-c15e3d93f2d61d26c2a6243f6386358608537541.tar.gz
bcm5719-llvm-c15e3d93f2d61d26c2a6243f6386358608537541.zip
Remove the -debug option from release executables
llvm-svn: 5521
Diffstat (limited to 'llvm/lib/Support/Statistic.cpp')
-rw-r--r--llvm/lib/Support/Statistic.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Support/Statistic.cpp b/llvm/lib/Support/Statistic.cpp
index 6345fbfcfcf..f6645c6ae40 100644
--- a/llvm/lib/Support/Statistic.cpp
+++ b/llvm/lib/Support/Statistic.cpp
@@ -30,10 +30,13 @@ unsigned StatisticBase::NumStats = 0;
static cl::opt<bool>
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<bool, true>
Debug("debug", cl::desc("Enable debug output"), cl::Hidden,
cl::location(DebugFlag));
+#endif
struct StatRecord {
std::string Value;
OpenPOWER on IntegriCloud