aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Pass.h6
-rw-r--r--lib/VMCore/Pass.cpp10
2 files changed, 0 insertions, 16 deletions
diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h
index f58efc2bb6..f4c6eed2cf 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 70b2d1d06d..7a7913b338 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;