summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-09-19 16:26:10 +0000
committerChris Lattner <sabre@nondot.org>2001-09-19 16:26:10 +0000
commitd89425bb586acb4fe9990d722a61d96d2e7ccdb1 (patch)
tree72dc1d5b2733da01d36e0d766e086d46b1349030 /llvm/lib
parent1bec3bd0a4916fb7d9a147e7bbe67654a735e5a3 (diff)
downloadbcm5719-llvm-d89425bb586acb4fe9990d722a61d96d2e7ccdb1.tar.gz
bcm5719-llvm-d89425bb586acb4fe9990d722a61d96d2e7ccdb1.zip
Change debug info from #define to command line option
llvm-svn: 646
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/RegAlloc/RegAllocCommon.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAlloc/RegAllocCommon.h b/llvm/lib/CodeGen/RegAlloc/RegAllocCommon.h
index 5aa66bd4c1c..5fa51c034f6 100644
--- a/llvm/lib/CodeGen/RegAlloc/RegAllocCommon.h
+++ b/llvm/lib/CodeGen/RegAlloc/RegAllocCommon.h
@@ -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
OpenPOWER on IntegriCloud