summaryrefslogtreecommitdiff
path: root/support/lib
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
commit0ad4c00c682f5a1917d1a5546e6365f0c978f7b1 (patch)
tree4a4d86b63113600e0be59a6c7df78dcf6522a292 /support/lib
parent638b381713e32a0a9fb2a83c43b600683116df52 (diff)
downloadllvm-0ad4c00c682f5a1917d1a5546e6365f0c978f7b1.tar.gz
llvm-0ad4c00c682f5a1917d1a5546e6365f0c978f7b1.tar.bz2
llvm-0ad4c00c682f5a1917d1a5546e6365f0c978f7b1.tar.xz
Remove the -debug option from release executables
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5521 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'support/lib')
-rw-r--r--support/lib/Support/Statistic.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/support/lib/Support/Statistic.cpp b/support/lib/Support/Statistic.cpp
index 6345fbfcfc..f6645c6ae4 100644
--- a/support/lib/Support/Statistic.cpp
+++ b/support/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;