From 0ad4c00c682f5a1917d1a5546e6365f0c978f7b1 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 9 Feb 2003 21:13:57 +0000 Subject: [PATCH] Remove the -debug option from release executables git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5521 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Statistic.cpp | 3 +++ support/lib/Support/Statistic.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/lib/Support/Statistic.cpp b/lib/Support/Statistic.cpp index 6345fbfcfcf..f6645c6ae40 100644 --- a/lib/Support/Statistic.cpp +++ b/lib/Support/Statistic.cpp @@ -30,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; diff --git a/support/lib/Support/Statistic.cpp b/support/lib/Support/Statistic.cpp index 6345fbfcfcf..f6645c6ae40 100644 --- a/support/lib/Support/Statistic.cpp +++ b/support/lib/Support/Statistic.cpp @@ -30,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; -- 2.34.1