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 | f5cad15a67707e0e7cff7619a446992c3f9d1907 (patch) | |
| tree | 38763d3caf6596aac0b4e22edd3fd99e43a5f617 /llvm/lib/Support/Statistic.cpp | |
| parent | bf30a91f947fae583d5394035a8a52863cbbd3ae (diff) | |
| download | bcm5719-llvm-f5cad15a67707e0e7cff7619a446992c3f9d1907.tar.gz bcm5719-llvm-f5cad15a67707e0e7cff7619a446992c3f9d1907.zip | |
*** empty log message ***
llvm-svn: 2985
Diffstat (limited to 'llvm/lib/Support/Statistic.cpp')
| -rw-r--r-- | llvm/lib/Support/Statistic.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/llvm/lib/Support/Statistic.cpp b/llvm/lib/Support/Statistic.cpp index 249955beeb8..a6b2dbdef6a 100644 --- a/llvm/lib/Support/Statistic.cpp +++ b/llvm/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 { |

