aboutsummaryrefslogtreecommitdiffstats
path: root/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
commit5ff62e90d0bc321206023897edc1e2691cb0fbb6 (patch)
treef9dd91f41ef5858a217a9b871d0e3d8fe089da99 /support
parent50e3f88d38d93edcec9047322da8ed43aefc9e3d (diff)
downloadexternal_llvm-5ff62e90d0bc321206023897edc1e2691cb0fbb6.zip
external_llvm-5ff62e90d0bc321206023897edc1e2691cb0fbb6.tar.gz
external_llvm-5ff62e90d0bc321206023897edc1e2691cb0fbb6.tar.bz2
*** empty log message ***
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2985 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'support')
-rw-r--r--support/lib/Support/Statistic.cpp12
-rw-r--r--support/lib/Support/StatisticReporter.cpp12
2 files changed, 20 insertions, 4 deletions
diff --git a/support/lib/Support/Statistic.cpp b/support/lib/Support/Statistic.cpp
index 249955b..a6b2dbd 100644
--- a/support/lib/Support/Statistic.cpp
+++ b/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/support/lib/Support/StatisticReporter.cpp b/support/lib/Support/StatisticReporter.cpp
index 249955b..a6b2dbd 100644
--- a/support/lib/Support/StatisticReporter.cpp
+++ b/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 {