From: Dan Gohman Date: Wed, 11 Aug 2010 20:28:16 +0000 (+0000) Subject: Remove BasicBlockPass::runOnFunction, which was unused. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fa5c2a67c38da929ef98c2a814fbac93404fb814;p=oota-llvm.git Remove BasicBlockPass::runOnFunction, which was unused. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110847 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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;