mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 04:33:40 +00:00
Delete FunctionPass::run, which is unused.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110843 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
73e8800229
commit
1f9a1608a6
@ -295,11 +295,6 @@ public:
|
|||||||
///
|
///
|
||||||
virtual bool doFinalization(Module &);
|
virtual bool doFinalization(Module &);
|
||||||
|
|
||||||
/// run - On a function, we simply initialize, run the function, then
|
|
||||||
/// finalize.
|
|
||||||
///
|
|
||||||
bool run(Function &F);
|
|
||||||
|
|
||||||
virtual void assignPassManager(PMStack &PMS,
|
virtual void assignPassManager(PMStack &PMS,
|
||||||
PassManagerType T);
|
PassManagerType T);
|
||||||
|
|
||||||
|
@ -141,17 +141,6 @@ Pass *FunctionPass::createPrinterPass(raw_ostream &O,
|
|||||||
return createPrintFunctionPass(Banner, &O);
|
return createPrintFunctionPass(Banner, &O);
|
||||||
}
|
}
|
||||||
|
|
||||||
// run - On a function, we simply initialize, run the function, then finalize.
|
|
||||||
//
|
|
||||||
bool FunctionPass::run(Function &F) {
|
|
||||||
// Passes are not run on external functions!
|
|
||||||
if (F.isDeclaration()) return false;
|
|
||||||
|
|
||||||
bool Changed = doInitialization(*F.getParent());
|
|
||||||
Changed |= runOnFunction(F);
|
|
||||||
return Changed | doFinalization(*F.getParent());
|
|
||||||
}
|
|
||||||
|
|
||||||
bool FunctionPass::doInitialization(Module &) {
|
bool FunctionPass::doInitialization(Module &) {
|
||||||
// By default, don't do anything.
|
// By default, don't do anything.
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user