diff options
author | Dan Gohman <gohman@apple.com> | 2010-08-11 20:28:16 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-08-11 20:28:16 +0000 |
commit | fa5c2a67c38da929ef98c2a814fbac93404fb814 (patch) | |
tree | a26085fb59417b29c1d416b19b1965b89f04be5c /lib/VMCore | |
parent | ec1355b17bbccfb52d69e84b1f2a865d17359e2f (diff) | |
download | external_llvm-fa5c2a67c38da929ef98c2a814fbac93404fb814.zip external_llvm-fa5c2a67c38da929ef98c2a814fbac93404fb814.tar.gz external_llvm-fa5c2a67c38da929ef98c2a814fbac93404fb814.tar.bz2 |
Remove BasicBlockPass::runOnFunction, which was unused.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110847 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/Pass.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/VMCore/Pass.cpp b/lib/VMCore/Pass.cpp index 70b2d1d..7a7913b 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; |