aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis/IPA
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-08-28 00:42:29 +0000
committerChris Lattner <sabre@nondot.org>2006-08-28 00:42:29 +0000
commita5370172b64bed5daf8e2869d7bf7cb52f80d6b7 (patch)
tree1af9676bf65c14df5ff1d8bb43c02ed29ba2f4d6 /lib/Analysis/IPA
parent84f82f7fac2735548eb6f800bd1fdeb4759f1c4b (diff)
downloadexternal_llvm-a5370172b64bed5daf8e2869d7bf7cb52f80d6b7.zip
external_llvm-a5370172b64bed5daf8e2869d7bf7cb52f80d6b7.tar.gz
external_llvm-a5370172b64bed5daf8e2869d7bf7cb52f80d6b7.tar.bz2
simplify AnalysisGroup registration, eliminating one typeid call.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29932 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/IPA')
-rw-r--r--lib/Analysis/IPA/Andersens.cpp2
-rw-r--r--lib/Analysis/IPA/CallGraph.cpp2
-rw-r--r--lib/Analysis/IPA/GlobalsModRef.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/Analysis/IPA/Andersens.cpp b/lib/Analysis/IPA/Andersens.cpp
index bc80f5b..c9f5871 100644
--- a/lib/Analysis/IPA/Andersens.cpp
+++ b/lib/Analysis/IPA/Andersens.cpp
@@ -338,7 +338,7 @@ namespace {
RegisterPass<Andersens> X("anders-aa",
"Andersen's Interprocedural Alias Analysis");
- RegisterAnalysisGroup<AliasAnalysis, Andersens> Y;
+ RegisterAnalysisGroup<AliasAnalysis> Y(X);
}
ModulePass *llvm::createAndersensPass() { return new Andersens(); }
diff --git a/lib/Analysis/IPA/CallGraph.cpp b/lib/Analysis/IPA/CallGraph.cpp
index 8836807..dab6867 100644
--- a/lib/Analysis/IPA/CallGraph.cpp
+++ b/lib/Analysis/IPA/CallGraph.cpp
@@ -183,7 +183,7 @@ private:
RegisterAnalysisGroup<CallGraph> X("Call Graph");
RegisterPass<BasicCallGraph> Y("basiccg", "Basic CallGraph Construction");
-RegisterAnalysisGroup<CallGraph, BasicCallGraph, true> Z;
+RegisterAnalysisGroup<CallGraph, true> Z(Y);
} //End anonymous namespace
diff --git a/lib/Analysis/IPA/GlobalsModRef.cpp b/lib/Analysis/IPA/GlobalsModRef.cpp
index 6739dfb..2db4ed8 100644
--- a/lib/Analysis/IPA/GlobalsModRef.cpp
+++ b/lib/Analysis/IPA/GlobalsModRef.cpp
@@ -137,7 +137,7 @@ namespace {
RegisterPass<GlobalsModRef> X("globalsmodref-aa",
"Simple mod/ref analysis for globals");
- RegisterAnalysisGroup<AliasAnalysis, GlobalsModRef> Y;
+ RegisterAnalysisGroup<AliasAnalysis> Y(X);
}
Pass *llvm::createGlobalsModRefPass() { return new GlobalsModRef(); }