summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-08-11 20:28:16 +0000
committerDan Gohman <gohman@apple.com>2010-08-11 20:28:16 +0000
commit30d0382efefac434646bb657002faf25107d04fa (patch)
tree29ea00047292e2ae2643d1926078997ef3467777
parentb7ef82baab7391aefbec378753b9293667c20931 (diff)
downloadbcm5719-llvm-30d0382efefac434646bb657002faf25107d04fa.tar.gz
bcm5719-llvm-30d0382efefac434646bb657002faf25107d04fa.zip
Remove BasicBlockPass::runOnFunction, which was unused.
llvm-svn: 110847
-rw-r--r--llvm/include/llvm/Pass.h6
-rw-r--r--llvm/lib/VMCore/Pass.cpp10
2 files changed, 0 insertions, 16 deletions
diff --git a/llvm/include/llvm/Pass.h b/llvm/include/llvm/Pass.h
index f58efc2bb6f..f4c6eed2cf9 100644
--- a/llvm/include/llvm/Pass.h
+++ b/llvm/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/llvm/lib/VMCore/Pass.cpp b/llvm/lib/VMCore/Pass.cpp
index 70b2d1d06dd..7a7913b338a 100644
--- a/llvm/lib/VMCore/Pass.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud