From f5cad15a67707e0e7cff7619a446992c3f9d1907 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 22 Jul 2002 02:10:13 +0000 Subject: *** empty log message *** llvm-svn: 2985 --- llvm/support/lib/Support/Statistic.cpp | 12 ++++++++++-- llvm/support/lib/Support/StatisticReporter.cpp | 12 ++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) (limited to 'llvm/support/lib/Support') diff --git a/llvm/support/lib/Support/Statistic.cpp b/llvm/support/lib/Support/Statistic.cpp index 249955beeb8..a6b2dbdef6a 100644 --- a/llvm/support/lib/Support/Statistic.cpp +++ b/llvm/support/lib/Support/Statistic.cpp @@ -20,8 +20,16 @@ bool DebugFlag; // DebugFlag - Exported boolean set by the -debug option -static cl::Flag Enabled("stats", "Enable statistics output from program"); -static cl::Flag Debug(DebugFlag, "debug", "Enable debug output", cl::Hidden); +// -stats - Command line option to cause transformations to emit stats about +// what they did. +// +static cl::opt +Enabled("stats", cl::desc("Enable statistics output from program")); + +// -debug - Command line option to enable the DEBUG statements in the passes. +static cl::opt +Debug("debug", cl::desc("Enable debug output"), cl::Hidden, + cl::location(DebugFlag)); // Print information when destroyed, iff command line option is specified void StatisticBase::destroy() const { diff --git a/llvm/support/lib/Support/StatisticReporter.cpp b/llvm/support/lib/Support/StatisticReporter.cpp index 249955beeb8..a6b2dbdef6a 100644 --- a/llvm/support/lib/Support/StatisticReporter.cpp +++ b/llvm/support/lib/Support/StatisticReporter.cpp @@ -20,8 +20,16 @@ bool DebugFlag; // DebugFlag - Exported boolean set by the -debug option -static cl::Flag Enabled("stats", "Enable statistics output from program"); -static cl::Flag Debug(DebugFlag, "debug", "Enable debug output", cl::Hidden); +// -stats - Command line option to cause transformations to emit stats about +// what they did. +// +static cl::opt +Enabled("stats", cl::desc("Enable statistics output from program")); + +// -debug - Command line option to enable the DEBUG statements in the passes. +static cl::opt +Debug("debug", cl::desc("Enable debug output"), cl::Hidden, + cl::location(DebugFlag)); // Print information when destroyed, iff command line option is specified void StatisticBase::destroy() const { -- cgit v1.2.3