Remove the -debug option from release executables

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5521 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-02-09 21:13:57 +00:00
parent 638b381713
commit 0ad4c00c68
2 changed files with 6 additions and 0 deletions

View 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;

View 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;