mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-19 16:35:10 +00:00
Remove BasicBlockPass::runOnFunction, which was unused.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110847 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ec1355b17b
commit
fa5c2a67c3
@ -346,12 +346,6 @@ public:
|
||||
///
|
||||
virtual bool doFinalization(Module &);
|
||||
|
||||
|
||||
// To run this pass on a function, we simply call runOnBasicBlock once for
|
||||
// each function.
|
||||
//
|
||||
bool runOnFunction(Function &F);
|
||||
|
||||
virtual void assignPassManager(PMStack &PMS,
|
||||
PassManagerType T);
|
||||
|
||||
|
@ -166,16 +166,6 @@ Pass *BasicBlockPass::createPrinterPass(raw_ostream &O,
|
||||
return 0;
|
||||
}
|
||||
|
||||
// To run this pass on a function, we simply call runOnBasicBlock once for each
|
||||
// function.
|
||||
//
|
||||
bool BasicBlockPass::runOnFunction(Function &F) {
|
||||
bool Changed = doInitialization(F);
|
||||
for (Function::iterator I = F.begin(), E = F.end(); I != E; ++I)
|
||||
Changed |= runOnBasicBlock(*I);
|
||||
return Changed | doFinalization(F);
|
||||
}
|
||||
|
||||
bool BasicBlockPass::doInitialization(Module &) {
|
||||
// By default, don't do anything.
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user