mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
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
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user