forked from OSchip/llvm-project
Delete FunctionPass::run, which is unused.
llvm-svn: 110843
This commit is contained in:
parent
b223a0e074
commit
fe8e2eae16
|
@ -295,11 +295,6 @@ public:
|
|||
///
|
||||
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,
|
||||
PassManagerType T);
|
||||
|
||||
|
|
|
@ -141,17 +141,6 @@ Pass *FunctionPass::createPrinterPass(raw_ostream &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 &) {
|
||||
// By default, don't do anything.
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue