Delete FunctionPass::run, which is unused.
authorDan Gohman <gohman@apple.com>
Wed, 11 Aug 2010 19:11:05 +0000 (19:11 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 11 Aug 2010 19:11:05 +0000 (19:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110843 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Pass.h
lib/VMCore/Pass.cpp

index 7760bc193a89b9b4e4f609449857ef1f32ed5b1b..f58efc2bb6fb4961e72bb1068dcb3a9c768e72f5 100644 (file)
@@ -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);
 
index 1afebc54eee06aef4a38999110df1e9661bed1db..70b2d1d06dd8b006f295aa857f95622958956736 100644 (file)
@@ -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;