summaryrefslogtreecommitdiff
path: root/lib/Support/Statistic.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-01 22:15:41 +0000
committerChris Lattner <sabre@nondot.org>2003-08-01 22:15:41 +0000
commit038e05a9171ca81c106bc3b1c52c77284cac80e2 (patch)
treede7dc119c10497029d55d66b12644e1b3daf0284 /lib/Support/Statistic.cpp
parent96a54db5e763c19f556a1b54ad2956cc91b81cb8 (diff)
downloadllvm-038e05a9171ca81c106bc3b1c52c77284cac80e2.tar.gz
llvm-038e05a9171ca81c106bc3b1c52c77284cac80e2.tar.bz2
llvm-038e05a9171ca81c106bc3b1c52c77284cac80e2.tar.xz
Move debug functionality to Debug.cpp/Debug.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7494 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Statistic.cpp')
-rw-r--r--lib/Support/Statistic.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/lib/Support/Statistic.cpp b/lib/Support/Statistic.cpp
index 1141086c3f..5c7cf63e50 100644
--- a/lib/Support/Statistic.cpp
+++ b/lib/Support/Statistic.cpp
@@ -16,15 +16,12 @@
#include "Support/Statistic.h"
#include "Support/CommandLine.h"
-#include <iostream>
#include <sstream>
-#include <algorithm>
+#include <iostream>
// GetLibSupportInfoOutputFile - Return a file stream to print our output on...
std::ostream *GetLibSupportInfoOutputFile();
-bool DebugFlag; // DebugFlag - Exported boolean set by the -debug option
-
unsigned StatisticBase::NumStats = 0;
// -stats - Command line option to cause transformations to emit stats about
@@ -33,14 +30,6 @@ unsigned StatisticBase::NumStats = 0;
static cl::opt<bool>
Enabled("stats", cl::desc("Enable statistics output from program"));
-#ifndef NDEBUG
-// -debug - Command line option to enable the DEBUG statements in the passes.
-// This flag may only be enabled in debug builds.
-static cl::opt<bool, true>
-Debug("debug", cl::desc("Enable debug output"), cl::Hidden,
- cl::location(DebugFlag));
-#endif
-
struct StatRecord {
std::string Value;
const char *Name, *Desc;