Change it to take a callgraph, from which we can get a module
authorChris Lattner <sabre@nondot.org>
Tue, 20 Apr 2004 21:52:07 +0000 (21:52 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 20 Apr 2004 21:52:07 +0000 (21:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13085 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CallGraphSCCPass.h

index 73c9323074f1098fa4864d7e2d72d485b59fd8d3..b7fba387ea5308c2cc0b4af43afc47fc8d3aa43c 100644 (file)
 namespace llvm {
 
 class CallGraphNode;
-class Module;
+class CallGraph;
 
 struct CallGraphSCCPass : public Pass {
 
   /// doInitialization - This method is called before the SCC's of the program
   /// has been processed, allowing the pass to do initialization as necessary.
-  virtual bool doInitialization(Module &M) {
+  virtual bool doInitialization(CallGraph &CG) {
     return false;
   }
 
@@ -45,7 +45,7 @@ struct CallGraphSCCPass : public Pass {
 
   /// doFinalization - This method is called after the SCC's of the program has
   /// been processed, allowing the pass to do final cleanup as necessary.
-  virtual bool doFinalization(Module &M) {
+  virtual bool doFinalization(CallGraph &CG) {
     return false;
   }