diff options
author | Chris Lattner <sabre@nondot.org> | 2002-07-22 02:10:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-07-22 02:10:13 +0000 |
commit | 5ff62e90d0bc321206023897edc1e2691cb0fbb6 (patch) | |
tree | f9dd91f41ef5858a217a9b871d0e3d8fe089da99 /lib/Support/Statistic.cpp | |
parent | 50e3f88d38d93edcec9047322da8ed43aefc9e3d (diff) |
*** empty log message ***
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2985 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Statistic.cpp')
-rw-r--r-- | lib/Support/Statistic.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/Support/Statistic.cpp b/lib/Support/Statistic.cpp index 249955beeb..a6b2dbdef6 100644 --- a/lib/Support/Statistic.cpp +++ b/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 { |