Rename functions to be more consistend with other pass constructors

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2388 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2002-04-28 21:45:36 +00:00
parent 9d73279ec8
commit e6ef6690b0

View File

@@ -126,11 +126,10 @@ Pass *New(const string &Message) {
} }
Pass *createPrintFunctionPass(const string &Message) {
Pass *NewPrintFunction(const string &Message) {
return new PrintFunctionPass(Message, &std::cout); return new PrintFunctionPass(Message, &std::cout);
} }
Pass *NewPrintModule(const string &Message) { Pass *createPrintModulePass(const string &Message) {
return new PrintModulePass(&std::cout); return new PrintModulePass(&std::cout);
} }
@@ -262,7 +261,7 @@ struct {
Pass *(*PassConstructor)(const string &Message); Pass *(*PassConstructor)(const string &Message);
} AnTable[] = { } AnTable[] = {
// Global analyses // Global analyses
{ print , NewPrintFunction }, { print , createPrintFunctionPass },
{ intervals , New<FunctionPass, IntervalPartition> }, { intervals , New<FunctionPass, IntervalPartition> },
{ loops , New<FunctionPass, LoopInfo> }, { loops , New<FunctionPass, LoopInfo> },
{ instforest , Create<PrinterPass<InstForest> > }, { instforest , Create<PrinterPass<InstForest> > },
@@ -270,7 +269,7 @@ struct {
{ exprs , Create<PrinterPass<Exprs> > }, { exprs , Create<PrinterPass<Exprs> > },
// IP Analyses... // IP Analyses...
{ printmodule , NewPrintModule }, { printmodule , createPrintModulePass },
{ printusedtypes , New<Pass, FindUsedTypes> }, { printusedtypes , New<Pass, FindUsedTypes> },
{ callgraph , New<Pass, CallGraph> }, { callgraph , New<Pass, CallGraph> },
{ datastructure , New<Pass, DataStructure> }, { datastructure , New<Pass, DataStructure> },