summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-03-08 01:43:56 +0000
committerDan Gohman <gohman@apple.com>2008-03-08 01:43:56 +0000
commit39b0ac4e590edf2b971b414b6429e9bc6093a2b5 (patch)
tree31750c2dfd91249fc6df58ba6ead12ac5e9e359f /llvm
parent21a8f144a6c260452f011db14b549e5eb11613db (diff)
downloadbcm5719-llvm-39b0ac4e590edf2b971b414b6429e9bc6093a2b5.tar.gz
bcm5719-llvm-39b0ac4e590edf2b971b414b6429e9bc6093a2b5.zip
Remove unused runPass methods.
llvm-svn: 48044
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Pass.h15
-rw-r--r--llvm/lib/VMCore/Pass.cpp14
2 files changed, 0 insertions, 29 deletions
diff --git a/llvm/include/llvm/Pass.h b/llvm/include/llvm/Pass.h
index 71149d4e585..231aa76507d 100644
--- a/llvm/include/llvm/Pass.h
+++ b/llvm/include/llvm/Pass.h
@@ -102,12 +102,6 @@ public:
///
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 @@ public:
/// 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 @@ public:
//
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);
diff --git a/llvm/lib/VMCore/Pass.cpp b/llvm/lib/VMCore/Pass.cpp
index fc92a95a929..e3d94c35054 100644
--- a/llvm/lib/VMCore/Pass.cpp
+++ b/llvm/lib/VMCore/Pass.cpp
@@ -112,20 +112,6 @@ bool BasicBlockPass::runOnFunction(Function &F) {
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
//
OpenPOWER on IntegriCloud