* Move command line parsing debug stuff to InstrScheduling internal header file
SchedPriorities.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1669 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/InstrSched/SchedPriorities.h b/lib/CodeGen/InstrSched/SchedPriorities.h
index b236e0a..7cbd0d1 100644
--- a/lib/CodeGen/InstrSched/SchedPriorities.h
+++ b/lib/CodeGen/InstrSched/SchedPriorities.h
@@ -25,13 +25,22 @@
#include "llvm/CodeGen/InstrScheduling.h"
#include "llvm/Analysis/LiveVar/MethodLiveVarInfo.h"
#include "llvm/Target/MachineSchedInfo.h"
+#include "Support/CommandLine.h"
#include <list>
-//#include <ostream>
class Method;
class MachineInstr;
class SchedulingManager;
+// Debug option levels for instruction scheduling
+enum SchedDebugLevel_t {
+ Sched_NoDebugInfo,
+ Sched_PrintMachineCode,
+ Sched_PrintSchedTrace,
+ Sched_PrintSchedGraphs,
+};
+
+extern cl::Enum<SchedDebugLevel_t> SchedDebugLevel;
struct NodeDelayPair {
const SchedGraphNode* node;