mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-01 00:02:16 +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 &);
|
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,
|
virtual void assignPassManager(PMStack &PMS,
|
||||||
PassManagerType T);
|
PassManagerType T);
|
||||||
|
|
||||||
|
@ -166,16 +166,6 @@ Pass *BasicBlockPass::createPrinterPass(raw_ostream &O,
|
|||||||
return 0;
|
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 &) {
|
bool BasicBlockPass::doInitialization(Module &) {
|
||||||
// By default, don't do anything.
|
// By default, don't do anything.
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user