Minor cleanups to follow the common convention for pass

registration variables.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111596 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2010-08-20 00:56:16 +00:00
parent af0636f4d6
commit a2a3bbc668
3 changed files with 22 additions and 20 deletions

View File

@ -41,12 +41,12 @@ namespace {
return false;
}
};
}
char CrashOnCalls::ID = 0;
RegisterPass<CrashOnCalls>
char CrashOnCalls::ID = 0;
static RegisterPass<CrashOnCalls>
X("bugpoint-crashcalls",
"BugPoint Test Pass - Intentionally crash on CallInsts");
}
namespace {
/// DeleteCalls - This pass is used to test bugpoint. It intentionally
@ -67,9 +67,9 @@ namespace {
return false;
}
};
}
char DeleteCalls::ID = 0;
RegisterPass<DeleteCalls>
char DeleteCalls::ID = 0;
static RegisterPass<DeleteCalls>
Y("bugpoint-deletecalls",
"BugPoint Test Pass - Intentionally 'misoptimize' CallInsts");
}

View File

@ -66,12 +66,14 @@ namespace {
AU.setPreservesAll();
}
};
}
char ExternalFunctionsPassedConstants::ID = 0;
RegisterPass<ExternalFunctionsPassedConstants>
char ExternalFunctionsPassedConstants::ID = 0;
static RegisterPass<ExternalFunctionsPassedConstants>
P1("print-externalfnconstants",
"Print external fn callsites passed constants");
namespace {
struct CallGraphPrinter : public ModulePass {
static char ID; // Pass ID, replacement for typeid
CallGraphPrinter() : ModulePass(ID) {}
@ -85,8 +87,8 @@ namespace {
return false;
}
};
char CallGraphPrinter::ID = 0;
RegisterPass<CallGraphPrinter>
P2("print-callgraph", "Print a call graph");
}
char CallGraphPrinter::ID = 0;
static RegisterPass<CallGraphPrinter>
P2("print-callgraph", "Print a call graph");

View File

@ -79,12 +79,12 @@ namespace {
AU.setPreservesAll();
}
};
char CallGraphPrinter::ID = 0;
RegisterPass<CallGraphPrinter> P2("dot-callgraph",
"Print Call Graph to 'dot' file");
}
char CallGraphPrinter::ID = 0;
static RegisterPass<CallGraphPrinter> P2("dot-callgraph",
"Print Call Graph to 'dot' file");
//===----------------------------------------------------------------------===//
// DomInfoPrinter Pass
//===----------------------------------------------------------------------===//
@ -110,8 +110,8 @@ namespace {
return false;
}
};
char DomInfoPrinter::ID = 0;
static RegisterPass<DomInfoPrinter>
DIP("print-dom-info", "Dominator Info Printer", true, true);
}
char DomInfoPrinter::ID = 0;
static RegisterPass<DomInfoPrinter>
DIP("print-dom-info", "Dominator Info Printer", true, true);