[llvm-commits] [llvm] r48044 - in /llvm/trunk: include/llvm/Pass.h lib/VMCore/Pass.cpp
Dan Gohman
gohman at apple.com
Fri Mar 7 17:43:56 PST 2008
Author: djg
Date: Fri Mar 7 19:43:56 2008
New Revision: 48044
URL: http://llvm.org/viewvc/llvm-project?rev=48044&view=rev
Log:
Remove unused runPass methods.
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=48044&r1=48043&r2=48044&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Pass.h (original)
+++ llvm/trunk/include/llvm/Pass.h Fri Mar 7 19:43:56 2008
@@ -102,12 +102,6 @@
///
const PassInfo *getPassInfo() const;
- /// runPass - Run this pass, returning true if a modification was made to the
- /// module argument. This should be implemented by all concrete subclasses.
- ///
- virtual bool runPass(Module &M) { return false; }
- virtual bool runPass(BasicBlock&) { return false; }
-
/// print - Print out the internal state of the pass. This is called by
/// Analyze to print out the contents of an analysis. Otherwise it is not
/// necessary to implement this method. Beware that the module pointer MAY be
@@ -230,9 +224,6 @@
/// being operated on.
virtual bool runOnModule(Module &M) = 0;
- virtual bool runPass(Module &M) { return runOnModule(M); }
- virtual bool runPass(BasicBlock&) { return false; }
-
virtual void assignPassManager(PMStack &PMS,
PassManagerType T = PMT_ModulePassManager);
@@ -371,12 +362,6 @@
//
bool runOnFunction(Function &F);
- /// To run directly on the basic block, we initialize, runOnBasicBlock, then
- /// finalize.
- ///
- virtual bool runPass(Module &M) { return false; }
- virtual bool runPass(BasicBlock &BB);
-
virtual void assignPassManager(PMStack &PMS,
PassManagerType T = PMT_BasicBlockPassManager);
Modified: llvm/trunk/lib/VMCore/Pass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Pass.cpp?rev=48044&r1=48043&r2=48044&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Pass.cpp (original)
+++ llvm/trunk/lib/VMCore/Pass.cpp Fri Mar 7 19:43:56 2008
@@ -112,20 +112,6 @@
return Changed | doFinalization(F);
}
-// To run directly on the basic block, we initialize, runOnBasicBlock, then
-// finalize.
-//
-bool BasicBlockPass::runPass(BasicBlock &BB) {
- Function &F = *BB.getParent();
- Module &M = *F.getParent();
- bool Changed = doInitialization(M);
- Changed |= doInitialization(F);
- Changed |= runOnBasicBlock(BB);
- Changed |= doFinalization(F);
- Changed |= doFinalization(M);
- return Changed;
-}
-
//===----------------------------------------------------------------------===//
// Pass Registration mechanism
//
More information about the llvm-commits
mailing list