From 1f9a1608a65c17f9e103d0948efef764aa87aafa Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 11 Aug 2010 19:11:05 +0000 Subject: [PATCH] Delete FunctionPass::run, which is unused. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110843 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Pass.h | 5 ----- lib/VMCore/Pass.cpp | 11 ----------- 2 files changed, 16 deletions(-) diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h index 7760bc193a8..f58efc2bb6f 100644 --- a/include/llvm/Pass.h +++ b/include/llvm/Pass.h @@ -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); diff --git a/lib/VMCore/Pass.cpp b/lib/VMCore/Pass.cpp index 1afebc54eee..70b2d1d06dd 100644 --- a/lib/VMCore/Pass.cpp +++ b/lib/VMCore/Pass.cpp @@ -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; -- 2.34.1