summaryrefslogtreecommitdiffstats
path: root/llvm/support/lib/Support
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-22 02:10:13 +0000
committerChris Lattner <sabre@nondot.org>2002-07-22 02:10:13 +0000
commitf5cad15a67707e0e7cff7619a446992c3f9d1907 (patch)
tree38763d3caf6596aac0b4e22edd3fd99e43a5f617 /llvm/support/lib/Support
parentbf30a91f947fae583d5394035a8a52863cbbd3ae (diff)
downloadbcm5719-llvm-f5cad15a67707e0e7cff7619a446992c3f9d1907.tar.gz
bcm5719-llvm-f5cad15a67707e0e7cff7619a446992c3f9d1907.zip
*** empty log message ***
llvm-svn: 2985
Diffstat (limited to 'llvm/support/lib/Support')
-rw-r--r--llvm/support/lib/Support/Statistic.cpp12
-rw-r--r--llvm/support/lib/Support/StatisticReporter.cpp12
2 files changed, 20 insertions, 4 deletions
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<bool>
+Enabled("stats", cl::desc("Enable statistics output from program"));
+
+// -debug - Command line option to enable the DEBUG statements in the passes.
+static cl::opt<bool, true>
+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<bool>
+Enabled("stats", cl::desc("Enable statistics output from program"));
+
+// -debug - Command line option to enable the DEBUG statements in the passes.
+static cl::opt<bool, true>
+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 {
OpenPOWER on IntegriCloud