mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
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:
@@ -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> },
|
||||||
|
Reference in New Issue
Block a user