diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-09-19 16:26:10 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-09-19 16:26:10 +0000 |
| commit | d89425bb586acb4fe9990d722a61d96d2e7ccdb1 (patch) | |
| tree | 72dc1d5b2733da01d36e0d766e086d46b1349030 /llvm/lib | |
| parent | 1bec3bd0a4916fb7d9a147e7bbe67654a735e5a3 (diff) | |
| download | bcm5719-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.h | 13 |
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 |

