Remove the -debug option from release executables
authorChris Lattner <sabre@nondot.org>
Sun, 9 Feb 2003 21:13:57 +0000 (21:13 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 9 Feb 2003 21:13:57 +0000 (21:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5521 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Statistic.cpp
support/lib/Support/Statistic.cpp

index 6345fbfcfcf83a57aeb7964af1280689376b06c2..f6645c6ae401132d93e7e12a2b15c7c6fcec1031 100644 (file)
@@ -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;
index 6345fbfcfcf83a57aeb7964af1280689376b06c2..f6645c6ae401132d93e7e12a2b15c7c6fcec1031 100644 (file)
@@ -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;