[llvm-commits] CVS: llvm/lib/Analysis/IPA/Andersens.cpp CallGraph.cpp GlobalsModRef.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Aug 27 17:42:51 PDT 2006
Changes in directory llvm/lib/Analysis/IPA:
Andersens.cpp updated: 1.31 -> 1.32
CallGraph.cpp updated: 1.56 -> 1.57
GlobalsModRef.cpp updated: 1.20 -> 1.21
---
Log message:
simplify AnalysisGroup registration, eliminating one typeid call.
---
Diffs of the changes: (+3 -3)
Andersens.cpp | 2 +-
CallGraph.cpp | 2 +-
GlobalsModRef.cpp | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/lib/Analysis/IPA/Andersens.cpp
diff -u llvm/lib/Analysis/IPA/Andersens.cpp:1.31 llvm/lib/Analysis/IPA/Andersens.cpp:1.32
--- llvm/lib/Analysis/IPA/Andersens.cpp:1.31 Sun Aug 27 17:42:51 2006
+++ llvm/lib/Analysis/IPA/Andersens.cpp Sun Aug 27 19:42:29 2006
@@ -338,7 +338,7 @@
RegisterPass<Andersens> X("anders-aa",
"Andersen's Interprocedural Alias Analysis");
- RegisterAnalysisGroup<AliasAnalysis, Andersens> Y;
+ RegisterAnalysisGroup<AliasAnalysis> Y(X);
}
ModulePass *llvm::createAndersensPass() { return new Andersens(); }
Index: llvm/lib/Analysis/IPA/CallGraph.cpp
diff -u llvm/lib/Analysis/IPA/CallGraph.cpp:1.56 llvm/lib/Analysis/IPA/CallGraph.cpp:1.57
--- llvm/lib/Analysis/IPA/CallGraph.cpp:1.56 Sun Aug 27 17:42:51 2006
+++ llvm/lib/Analysis/IPA/CallGraph.cpp Sun Aug 27 19:42:29 2006
@@ -183,7 +183,7 @@
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
Index: llvm/lib/Analysis/IPA/GlobalsModRef.cpp
diff -u llvm/lib/Analysis/IPA/GlobalsModRef.cpp:1.20 llvm/lib/Analysis/IPA/GlobalsModRef.cpp:1.21
--- llvm/lib/Analysis/IPA/GlobalsModRef.cpp:1.20 Sun Aug 27 17:42:51 2006
+++ llvm/lib/Analysis/IPA/GlobalsModRef.cpp Sun Aug 27 19:42:29 2006
@@ -137,7 +137,7 @@
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(); }
More information about the llvm-commits
mailing list