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:
Dan Gohman 2010-08-11 20:28:16 +00:00
parent ec1355b17b
commit fa5c2a67c3
2 changed files with 0 additions and 16 deletions

View File

@ -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);

View File

@ -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;