mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-12 12:33:17 +00:00
Remove dead code.
CallGraphSCCPass does not need to implement runOnModule(). It supports runOnSCC(). llvm-svn: 33516
This commit is contained in:
parent
c5a454b111
commit
f1ef346a53
@ -50,11 +50,6 @@ struct CallGraphSCCPass : public Pass {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 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 runOnModule(Module &M);
|
|
||||||
|
|
||||||
/// Assign pass manager to manager this pass
|
/// Assign pass manager to manager this pass
|
||||||
virtual void assignPassManager(PMStack &PMS,
|
virtual void assignPassManager(PMStack &PMS,
|
||||||
PassManagerType PMT = PMT_CallGraphPassManager);
|
PassManagerType PMT = PMT_CallGraphPassManager);
|
||||||
|
@ -189,12 +189,3 @@ void CallGraphSCCPass::getAnalysisUsage(AnalysisUsage &AU) const {
|
|||||||
AU.addRequired<CallGraph>();
|
AU.addRequired<CallGraph>();
|
||||||
AU.addPreserved<CallGraph>();
|
AU.addPreserved<CallGraph>();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CallGraphSCCPass::runOnModule(Module &M) {
|
|
||||||
CallGraph &CG = getAnalysis<CallGraph>();
|
|
||||||
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(CG);
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user