From 038e05a9171ca81c106bc3b1c52c77284cac80e2 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 1 Aug 2003 22:15:41 +0000 Subject: 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 --- support/lib/Support/Statistic.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'support/lib/Support/Statistic.cpp') diff --git a/support/lib/Support/Statistic.cpp b/support/lib/Support/Statistic.cpp index 1141086c3f..5c7cf63e50 100644 --- a/support/lib/Support/Statistic.cpp +++ b/support/lib/Support/Statistic.cpp @@ -16,15 +16,12 @@ #include "Support/Statistic.h" #include "Support/CommandLine.h" -#include #include -#include +#include // 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 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 -Debug("debug", cl::desc("Enable debug output"), cl::Hidden, - cl::location(DebugFlag)); -#endif - struct StatRecord { std::string Value; const char *Name, *Desc; -- cgit v1.2.3-18-g5258