Change debug info from #define to command line option
authorChris Lattner <sabre@nondot.org>
Wed, 19 Sep 2001 16:26:10 +0000 (16:26 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 19 Sep 2001 16:26:10 +0000 (16:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@646 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/RegAllocCommon.h
lib/CodeGen/RegAlloc/RegAllocCommon.h
lib/Target/SparcV9/RegAlloc/RegAllocCommon.h

index 5aa66bd4c1c2f106ca1c0f017de16f3e1f52081a..5fa51c034f632d908b01d5cda809343e46bee4fb 100644 (file)
@@ -1,10 +1,21 @@
+
+#include "llvm/Support/CommandLine.h"
+
 #ifndef REG_ALLOC_COMMON_H
 #define  REG_ALLOC_COMMON_H
 
+// THIS IS NOW SPECIFIED VIA A COMMANDLINE ARGUMENT TO LLC
+//
 // set DEBUG_RA for printing out debug messages
 // if DEBUG_RA is 1 normal output messages
 // if DEBUG_RA is 2 extensive debug info for each instr
 
-#define DEBUG_RA (0)
+enum RegAllocDebugLevel_t {
+  RA_DEBUG_None    = 0,
+  RA_DEBUG_Normal  = 1,
+  RA_DEBUG_Verbose = 2,
+};
+
+extern cl::Enum<RegAllocDebugLevel_t> DEBUG_RA;
 
 #endif
index 5aa66bd4c1c2f106ca1c0f017de16f3e1f52081a..5fa51c034f632d908b01d5cda809343e46bee4fb 100644 (file)
@@ -1,10 +1,21 @@
+
+#include "llvm/Support/CommandLine.h"
+
 #ifndef REG_ALLOC_COMMON_H
 #define  REG_ALLOC_COMMON_H
 
+// THIS IS NOW SPECIFIED VIA A COMMANDLINE ARGUMENT TO LLC
+//
 // set DEBUG_RA for printing out debug messages
 // if DEBUG_RA is 1 normal output messages
 // if DEBUG_RA is 2 extensive debug info for each instr
 
-#define DEBUG_RA (0)
+enum RegAllocDebugLevel_t {
+  RA_DEBUG_None    = 0,
+  RA_DEBUG_Normal  = 1,
+  RA_DEBUG_Verbose = 2,
+};
+
+extern cl::Enum<RegAllocDebugLevel_t> DEBUG_RA;
 
 #endif
index 5aa66bd4c1c2f106ca1c0f017de16f3e1f52081a..5fa51c034f632d908b01d5cda809343e46bee4fb 100644 (file)
@@ -1,10 +1,21 @@
+
+#include "llvm/Support/CommandLine.h"
+
 #ifndef REG_ALLOC_COMMON_H
 #define  REG_ALLOC_COMMON_H
 
+// THIS IS NOW SPECIFIED VIA A COMMANDLINE ARGUMENT TO LLC
+//
 // set DEBUG_RA for printing out debug messages
 // if DEBUG_RA is 1 normal output messages
 // if DEBUG_RA is 2 extensive debug info for each instr
 
-#define DEBUG_RA (0)
+enum RegAllocDebugLevel_t {
+  RA_DEBUG_None    = 0,
+  RA_DEBUG_Normal  = 1,
+  RA_DEBUG_Verbose = 2,
+};
+
+extern cl::Enum<RegAllocDebugLevel_t> DEBUG_RA;
 
 #endif