mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +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:
parent
9d73279ec8
commit
e6ef6690b0
@ -126,11 +126,10 @@ Pass *New(const string &Message) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
Pass *NewPrintFunction(const string &Message) {
|
||||
Pass *createPrintFunctionPass(const string &Message) {
|
||||
return new PrintFunctionPass(Message, &std::cout);
|
||||
}
|
||||
Pass *NewPrintModule(const string &Message) {
|
||||
Pass *createPrintModulePass(const string &Message) {
|
||||
return new PrintModulePass(&std::cout);
|
||||
}
|
||||
|
||||
@ -262,7 +261,7 @@ struct {
|
||||
Pass *(*PassConstructor)(const string &Message);
|
||||
} AnTable[] = {
|
||||
// Global analyses
|
||||
{ print , NewPrintFunction },
|
||||
{ print , createPrintFunctionPass },
|
||||
{ intervals , New<FunctionPass, IntervalPartition> },
|
||||
{ loops , New<FunctionPass, LoopInfo> },
|
||||
{ instforest , Create<PrinterPass<InstForest> > },
|
||||
@ -270,7 +269,7 @@ struct {
|
||||
{ exprs , Create<PrinterPass<Exprs> > },
|
||||
|
||||
// IP Analyses...
|
||||
{ printmodule , NewPrintModule },
|
||||
{ printmodule , createPrintModulePass },
|
||||
{ printusedtypes , New<Pass, FindUsedTypes> },
|
||||
{ callgraph , New<Pass, CallGraph> },
|
||||
{ datastructure , New<Pass, DataStructure> },
|
||||
|
Loading…
Reference in New Issue
Block a user