mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
Pass the callgraph not the module
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13087 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
78637fe9d6
commit
72035995d5
@ -30,9 +30,9 @@ void CallGraphSCCPass::getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
|
||||
bool CallGraphSCCPass::run(Module &M) {
|
||||
CallGraph &CG = getAnalysis<CallGraph>();
|
||||
bool Changed = doInitialization(M);
|
||||
bool Changed = doInitialization(CG);
|
||||
for (scc_iterator<CallGraph*> I = scc_begin(&CG), E = scc_end(&CG);
|
||||
I != E; ++I)
|
||||
Changed = runOnSCC(*I);
|
||||
return Changed | doFinalization(M);
|
||||
return Changed | doFinalization(CG);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user