summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-05-22 17:08:27 +0000
committerChris Lattner <sabre@nondot.org>2002-05-22 17:08:27 +0000
commitafc86e9a358cd6f94ae46394c69a048015ae74ef (patch)
tree89f264cb9632fe4348d6ddcc4ce5d97ab0542346 /llvm/lib/CodeGen
parent6264c1c0ab4c0a04ad81cce09a4c08dac38129a0 (diff)
downloadbcm5719-llvm-afc86e9a358cd6f94ae46394c69a048015ae74ef.tar.gz
bcm5719-llvm-afc86e9a358cd6f94ae46394c69a048015ae74ef.zip
Move debug options out of header files so that the header does not have
to #include CommandLine.h. llvm-svn: 2712
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp5
-rw-r--r--llvm/lib/CodeGen/InstrSched/SchedPriorities.h3
-rw-r--r--llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp9
3 files changed, 8 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp b/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp
index 0a6d1ce3539..2d2bc147268 100644
--- a/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp
+++ b/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp
@@ -13,13 +13,14 @@
#include "llvm/Target/TargetMachine.h"
#include "llvm/BasicBlock.h"
#include "llvm/Instruction.h"
+#include "Support/CommandLine.h"
#include <algorithm>
using std::cerr;
using std::vector;
-//************************* External Data Types *****************************/
+SchedDebugLevel_t SchedDebugLevel;
-cl::Enum<enum SchedDebugLevel_t> SchedDebugLevel("dsched", cl::Hidden,
+static cl::Enum<enum SchedDebugLevel_t> Opt(SchedDebugLevel,"dsched",cl::Hidden,
"enable instruction scheduling debugging information",
clEnumValN(Sched_NoDebugInfo, "n", "disable debug output"),
clEnumValN(Sched_Disable, "off", "disable instruction scheduling"),
diff --git a/llvm/lib/CodeGen/InstrSched/SchedPriorities.h b/llvm/lib/CodeGen/InstrSched/SchedPriorities.h
index 3f087d52249..a34557ca154 100644
--- a/llvm/lib/CodeGen/InstrSched/SchedPriorities.h
+++ b/llvm/lib/CodeGen/InstrSched/SchedPriorities.h
@@ -24,7 +24,6 @@
#include "SchedGraph.h"
#include "llvm/CodeGen/InstrScheduling.h"
#include "llvm/Target/MachineSchedInfo.h"
-#include "Support/CommandLine.h"
#include <list>
#include <ext/hash_set>
#include <iostream>
@@ -44,7 +43,7 @@ enum SchedDebugLevel_t {
Sched_PrintSchedGraphs,
};
-extern cl::Enum<SchedDebugLevel_t> SchedDebugLevel;
+extern SchedDebugLevel_t SchedDebugLevel;
//---------------------------------------------------------------------------
// Function: instrIsFeasible
diff --git a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
index ab9b1a7b176..bd0db117f0f 100644
--- a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
+++ b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
@@ -24,15 +24,14 @@
#include "llvm/Type.h"
#include "llvm/iOther.h"
#include "llvm/CodeGen/RegAllocCommon.h"
+#include "Support/CommandLine.h"
#include <iostream>
#include <math.h>
using std::cerr;
-
-// ***TODO: There are several places we add instructions. Validate the order
-// of adding these instructions.
-
-cl::Enum<RegAllocDebugLevel_t> DEBUG_RA("dregalloc", cl::Hidden,
+RegAllocDebugLevel_t DEBUG_RA;
+static cl::Enum<RegAllocDebugLevel_t> DEBUG_RA_c(DEBUG_RA, "dregalloc",
+ cl::Hidden,
"enable register allocation debugging information",
clEnumValN(RA_DEBUG_None , "n", "disable debug output"),
clEnumValN(RA_DEBUG_Normal , "y", "enable debug output"),
OpenPOWER on IntegriCloud