diff options
author | Devang Patel <dpatel@apple.com> | 2006-12-13 21:13:31 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2006-12-13 21:13:31 +0000 |
commit | e8ff1ce7343c697ff90d940c8c5fa8fccc09220d (patch) | |
tree | 8874a196c6c5392d046cfefdb5e620492fa69881 /lib/VMCore/PassManager.cpp | |
parent | 133b1dd8adbd441ef77bcdae772df6b439e3123b (diff) |
Using PDL as a prefix for PassDebugLevel enums is not a good idea.
Fix it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32562 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/PassManager.cpp')
-rw-r--r-- | lib/VMCore/PassManager.cpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp index 056a2a87c2..7057ac0a1a 100644 --- a/lib/VMCore/PassManager.cpp +++ b/lib/VMCore/PassManager.cpp @@ -94,15 +94,20 @@ namespace llvm { // pass name to be printed before it executes. // +// Different debug levels that can be enabled... +enum PassDebugLevel { + None, Arguments, Structure, Executions, Details +}; + static cl::opt<enum PassDebugLevel> PassDebugging_New("debug-pass", cl::Hidden, cl::desc("Print PassManager debugging information"), cl::values( - clEnumVal(PDLNone , "disable debug output"), - clEnumVal(PDLArguments , "print pass arguments to pass to 'opt'"), - clEnumVal(PDLStructure , "print pass structure before run()"), - clEnumVal(PDLExecutions, "print pass name before it is executed"), - clEnumVal(PDLDetails , "print pass details when it is executed"), + clEnumVal(None , "disable debug output"), + clEnumVal(Arguments , "print pass arguments to pass to 'opt'"), + clEnumVal(Structure , "print pass structure before run()"), + clEnumVal(Executions, "print pass name before it is executed"), + clEnumVal(Details , "print pass details when it is executed"), clEnumValEnd)); } // End of llvm namespace @@ -1264,7 +1269,7 @@ bool PassManagerImpl_New::run(Module &M) { bool Changed = false; - if (PassDebugging_New >= PDLStructure) + if (PassDebugging_New >= Structure) dumpPasses(); for (std::vector<Pass *>::iterator I = passManagersBegin(), |