Change it to take a callgraph, from which we can get a module

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13085 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-04-20 21:52:07 +00:00
parent a10df50282
commit 25942e9f5c

View File

@ -26,13 +26,13 @@
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;
}