summaryrefslogtreecommitdiff
path: root/lib/VMCore/Pass.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-08-11 19:05:53 +0000
committerDan Gohman <gohman@apple.com>2010-08-11 19:05:53 +0000
commit73e88002290920f2d1599bde7878ed01a9e8c242 (patch)
tree583b6fd1caed602d7e79504a0b232d008146f574 /lib/VMCore/Pass.cpp
parentb68f274b6d63ffcf4391304e7e133b7913f17d96 (diff)
downloadllvm-73e88002290920f2d1599bde7878ed01a9e8c242.tar.gz
llvm-73e88002290920f2d1599bde7878ed01a9e8c242.tar.bz2
llvm-73e88002290920f2d1599bde7878ed01a9e8c242.tar.xz
Delete FunctionPass::runOnModule, which is unused.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110842 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Pass.cpp')
-rw-r--r--lib/VMCore/Pass.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/VMCore/Pass.cpp b/lib/VMCore/Pass.cpp
index 41a87d60ad..1afebc54ee 100644
--- a/lib/VMCore/Pass.cpp
+++ b/lib/VMCore/Pass.cpp
@@ -141,19 +141,6 @@ Pass *FunctionPass::createPrinterPass(raw_ostream &O,
return createPrintFunctionPass(Banner, &O);
}
-// run - On a module, we run this pass by initializing, runOnFunction'ing once
-// for every function in the module, then by finalizing.
-//
-bool FunctionPass::runOnModule(Module &M) {
- bool Changed = doInitialization(M);
-
- for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
- if (!I->isDeclaration()) // Passes are not run on external functions!
- Changed |= runOnFunction(*I);
-
- return Changed | doFinalization(M);
-}
-
// run - On a function, we simply initialize, run the function, then finalize.
//
bool FunctionPass::run(Function &F) {