mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00:00
Remove unused runPass methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48044 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7f96f3912e
commit
cdff0d6b04
@ -102,12 +102,6 @@ public:
|
|||||||
///
|
///
|
||||||
const PassInfo *getPassInfo() const;
|
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
|
/// 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
|
/// 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
|
/// necessary to implement this method. Beware that the module pointer MAY be
|
||||||
@ -230,9 +224,6 @@ public:
|
|||||||
/// being operated on.
|
/// being operated on.
|
||||||
virtual bool runOnModule(Module &M) = 0;
|
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,
|
virtual void assignPassManager(PMStack &PMS,
|
||||||
PassManagerType T = PMT_ModulePassManager);
|
PassManagerType T = PMT_ModulePassManager);
|
||||||
|
|
||||||
@ -371,12 +362,6 @@ public:
|
|||||||
//
|
//
|
||||||
bool runOnFunction(Function &F);
|
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,
|
virtual void assignPassManager(PMStack &PMS,
|
||||||
PassManagerType T = PMT_BasicBlockPassManager);
|
PassManagerType T = PMT_BasicBlockPassManager);
|
||||||
|
|
||||||
|
@ -112,20 +112,6 @@ bool BasicBlockPass::runOnFunction(Function &F) {
|
|||||||
return Changed | doFinalization(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
|
// Pass Registration mechanism
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user