- /// run - Run this pass, returning true if a modification was made to the
- /// module argument. This is implemented in terms of the runOnSCC method.
- ///
- virtual bool run(Module &M);
+ /// 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(CallGraph &CG) {
+ return false;
+ }
+
+ /// Assign pass manager to manager this pass
+ virtual void assignPassManager(PMStack &PMS,
+ PassManagerType PMT = PMT_CallGraphPassManager);