diff options
author | Chris Lattner <sabre@nondot.org> | 2002-05-22 17:08:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-05-22 17:08:27 +0000 |
commit | afc86e9a358cd6f94ae46394c69a048015ae74ef (patch) | |
tree | 89f264cb9632fe4348d6ddcc4ce5d97ab0542346 /llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp | |
parent | 6264c1c0ab4c0a04ad81cce09a4c08dac38129a0 (diff) | |
download | bcm5719-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/Analysis/LiveVar/FunctionLiveVarInfo.cpp')
-rw-r--r-- | llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp b/llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp index edf68868d47..11056406124 100644 --- a/llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp +++ b/llvm/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp @@ -11,17 +11,22 @@ #include "llvm/Support/CFG.h" #include "Support/PostOrderIterator.h" #include "Support/SetOperations.h" +#include "Support/CommandLine.h" #include <iostream> AnalysisID FunctionLiveVarInfo::ID(AnalysisID::create<FunctionLiveVarInfo>()); -cl::Enum<LiveVarDebugLevel_t> DEBUG_LV("dlivevar", cl::Hidden, +LiveVarDebugLevel_t DEBUG_LV; + +static cl::Enum<LiveVarDebugLevel_t> DEBUG_LV_opt(DEBUG_LV, "dlivevar", cl::Hidden, "enable live-variable debugging information", clEnumValN(LV_DEBUG_None , "n", "disable debug output"), clEnumValN(LV_DEBUG_Normal , "y", "enable debug output"), clEnumValN(LV_DEBUG_Instr, "i", "print live-var sets before/after every machine instrn"), clEnumValN(LV_DEBUG_Verbose, "v", "print def, use sets for every instrn also"), 0); + + //----------------------------------------------------------------------------- // Accessor Functions //----------------------------------------------------------------------------- |