aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Pass.h5
-rw-r--r--lib/VMCore/Pass.cpp11
2 files changed, 0 insertions, 16 deletions
diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h
index 7760bc1..f58efc2 100644
--- a/include/llvm/Pass.h
+++ b/include/llvm/Pass.h
@@ -295,11 +295,6 @@ public:
///
virtual bool doFinalization(Module &);
- /// run - On a function, we simply initialize, run the function, then
- /// finalize.
- ///
- bool run(Function &F);
-
virtual void assignPassManager(PMStack &PMS,
PassManagerType T);
diff --git a/lib/VMCore/Pass.cpp b/lib/VMCore/Pass.cpp
index 1afebc5..70b2d1d 100644
--- a/lib/VMCore/Pass.cpp
+++ b/lib/VMCore/Pass.cpp
@@ -141,17 +141,6 @@ Pass *FunctionPass::createPrinterPass(raw_ostream &O,
return createPrintFunctionPass(Banner, &O);
}
-// run - On a function, we simply initialize, run the function, then finalize.
-//
-bool FunctionPass::run(Function &F) {
- // Passes are not run on external functions!
- if (F.isDeclaration()) return false;
-
- bool Changed = doInitialization(*F.getParent());
- Changed |= runOnFunction(F);
- return Changed | doFinalization(*F.getParent());
-}
-
bool FunctionPass::doInitialization(Module &) {
// By default, don't do anything.
return false;