diff options
| author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-07-31 21:53:25 +0000 |
|---|---|---|
| committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-07-31 21:53:25 +0000 |
| commit | 527c8955dea62fb5b74b1a1cd48b065abf35af57 (patch) | |
| tree | f2f44a2bb38ef0ed4af3808bc178e56a494e412a /llvm/lib | |
| parent | 5abe1287524f84d70cb48662931da7ee48b63534 (diff) | |
| download | bcm5719-llvm-527c8955dea62fb5b74b1a1cd48b065abf35af57.tar.gz bcm5719-llvm-527c8955dea62fb5b74b1a1cd48b065abf35af57.zip | |
Simplify command line options, and add option for printing
machine instructions without debugging info.
llvm-svn: 340
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp b/llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp index 4b389b732ce..b879840ba16 100644 --- a/llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp +++ b/llvm/lib/CodeGen/InstrSelection/InstrSelection.cpp @@ -7,7 +7,7 @@ // // History: // 7/02/01 - Vikram Adve - Created -//*************************************************************************** +//**************************************************************************/ #include "llvm/CodeGen/InstrSelection.h" @@ -21,16 +21,18 @@ enum DebugLev { NoDebugInfo, + PrintInstTrees, DebugInstTrees, DebugBurgTrees, }; // Enable Debug Options to be specified on the command line -cl::Enum<enum DebugLev> DebugLevel("debug_select", cl::NoFlags, // cl::Hidden +cl::Enum<enum DebugLev> DebugLevel("dselect", cl::NoFlags, // cl::Hidden "enable instruction selection debugging information", - clEnumVal(NoDebugInfo , "disable debug output"), - clEnumVal(DebugInstTrees, "print instruction trees"), - clEnumVal(DebugBurgTrees, "print burg trees"), 0); + clEnumValN(NoDebugInfo, "n", "disable debug output"), + clEnumValN(PrintInstTrees, "y", "print generated instruction trees"), + clEnumValN(DebugInstTrees, "i", "print instr. selection debugging info"), + clEnumValN(DebugBurgTrees, "b", "print burg trees"), 0); //************************* Forward Declarations ***************************/ @@ -92,7 +94,7 @@ bool SelectInstructionsForMethod(Method* method, TargetMachine &Target) { instrForest.dump(); } - if (DebugLevel > NoDebugInfo) + if (DebugLevel >= PrintInstTrees) PrintMachineInstructions(method); } |

