mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-27 13:30:05 +00:00
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:
parent
a10df50282
commit
25942e9f5c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user