summaryrefslogtreecommitdiffstats
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
commitb223a0e074824f107b5e89089eb588ac22a2df9a (patch)
tree40b47694168ed983366fcc11335daf4071c4813e
parent0150367c2719e851baf0f508436ec12dc33bc904 (diff)
downloadbcm5719-llvm-b223a0e074824f107b5e89089eb588ac22a2df9a.tar.gz
bcm5719-llvm-b223a0e074824f107b5e89089eb588ac22a2df9a.zip
Delete FunctionPass::runOnModule, which is unused.
llvm-svn: 110842
-rw-r--r--llvm/include/llvm/Pass.h6
-rw-r--r--llvm/lib/VMCore/Pass.cpp13
2 files changed, 0 insertions, 19 deletions
diff --git a/llvm/include/llvm/Pass.h b/llvm/include/llvm/Pass.h
index 4cbf27b98b4..7760bc193a8 100644
--- a/llvm/include/llvm/Pass.h
+++ b/llvm/include/llvm/Pass.h
@@ -295,12 +295,6 @@ public:
///
virtual bool doFinalization(Module &);
- /// runOnModule - On a module, we run this pass by initializing,
- /// ronOnFunction'ing once for every function in the module, then by
- /// finalizing.
- ///
- virtual bool runOnModule(Module &M);
-
/// run - On a function, we simply initialize, run the function, then
/// finalize.
///
diff --git a/llvm/lib/VMCore/Pass.cpp b/llvm/lib/VMCore/Pass.cpp
index 41a87d60ad6..1afebc54eee 100644
--- a/llvm/lib/VMCore/Pass.cpp
+++ b/llvm/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) {
OpenPOWER on IntegriCloud