From e6ef6690b08d855b1c7ab852d82b6399d93db6af Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 28 Apr 2002 21:45:36 +0000 Subject: [PATCH] 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 --- tools/analyze/analyze.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tools/analyze/analyze.cpp b/tools/analyze/analyze.cpp index 8a1d86caf17..6de37384705 100644 --- a/tools/analyze/analyze.cpp +++ b/tools/analyze/analyze.cpp @@ -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 }, { loops , New }, { instforest , Create > }, @@ -270,7 +269,7 @@ struct { { exprs , Create > }, // IP Analyses... - { printmodule , NewPrintModule }, + { printmodule , createPrintModulePass }, { printusedtypes , New }, { callgraph , New }, { datastructure , New },