[llvm-commits] [llvm] r110842 - in /llvm/trunk: include/llvm/Pass.h lib/VMCore/Pass.cpp
Dan Gohman
gohman at apple.com
Wed Aug 11 12:05:53 PDT 2010
Author: djg
Date: Wed Aug 11 14:05:53 2010
New Revision: 110842
URL: http://llvm.org/viewvc/llvm-project?rev=110842&view=rev
Log:
Delete FunctionPass::runOnModule, which is unused.
Modified:
llvm/trunk/include/llvm/Pass.h
llvm/trunk/lib/VMCore/Pass.cpp
Modified: llvm/trunk/include/llvm/Pass.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Pass.h?rev=110842&r1=110841&r2=110842&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Pass.h (original)
+++ llvm/trunk/include/llvm/Pass.h Wed Aug 11 14:05:53 2010
@@ -295,12 +295,6 @@
///
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.
///
Modified: llvm/trunk/lib/VMCore/Pass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Pass.cpp?rev=110842&r1=110841&r2=110842&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Pass.cpp (original)
+++ llvm/trunk/lib/VMCore/Pass.cpp Wed Aug 11 14:05:53 2010
@@ -141,19 +141,6 @@
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) {
More information about the llvm-commits
mailing list