diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h index f58efc2bb6f..f4c6eed2cf9 100644 --- a/include/llvm/Pass.h +++ b/include/llvm/Pass.h @@ -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); diff --git a/lib/VMCore/Pass.cpp b/lib/VMCore/Pass.cpp index 70b2d1d06dd..7a7913b338a 100644 --- a/lib/VMCore/Pass.cpp +++ b/lib/VMCore/Pass.cpp @@ -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;