From 25942e9f5c1ad7f93b00059365230f7fd0089dfe Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 20 Apr 2004 21:52:07 +0000 Subject: [PATCH] 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 --- include/llvm/CallGraphSCCPass.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/llvm/CallGraphSCCPass.h b/include/llvm/CallGraphSCCPass.h index 73c9323074f..b7fba387ea5 100644 --- a/include/llvm/CallGraphSCCPass.h +++ b/include/llvm/CallGraphSCCPass.h @@ -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; } -- 2.34.1