aboutsummaryrefslogtreecommitdiffstats
path: root/tools/analyze/analyze.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-28 21:45:36 +0000
committerChris Lattner <sabre@nondot.org>2002-04-28 21:45:36 +0000
commite6ef6690b08d855b1c7ab852d82b6399d93db6af (patch)
tree0425510bf2e59e0caa952ec72f7cf8c95762f3f7 /tools/analyze/analyze.cpp
parent9d73279ec8b38732bc1cfc3921de4949606cd0bf (diff)
downloadexternal_llvm-e6ef6690b08d855b1c7ab852d82b6399d93db6af.zip
external_llvm-e6ef6690b08d855b1c7ab852d82b6399d93db6af.tar.gz
external_llvm-e6ef6690b08d855b1c7ab852d82b6399d93db6af.tar.bz2
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
Diffstat (limited to 'tools/analyze/analyze.cpp')
-rw-r--r--tools/analyze/analyze.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/analyze/analyze.cpp b/tools/analyze/analyze.cpp
index 8a1d86c..6de3738 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<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> },