aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-08-11 19:11:05 +0000
committerDan Gohman <gohman@apple.com>2010-08-11 19:11:05 +0000
commit1f9a1608a65c17f9e103d0948efef764aa87aafa (patch)
tree3ddab07a18a87538687a61b12c54c5ba8fe3b170
parent73e88002290920f2d1599bde7878ed01a9e8c242 (diff)
Delete FunctionPass::run, which is unused.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110843 91177308-0d34-0410-b5e6-96231b3b80d8
-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 7760bc193a..f58efc2bb6 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 1afebc54ee..70b2d1d06d 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;