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

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

index 4cbf27b98b4d3ed245126273ec4ef90421eadc18..7760bc193a89b9b4e4f609449857ef1f32ed5b1b 100644 (file)
@@ -295,12 +295,6 @@ public:
   ///
   virtual bool doFinalization(Module &);
 
-  /// runOnModule - On a module, we run this pass by initializing,
-  /// ronOnFunction'ing once for every function in the module, then by
-  /// finalizing.
-  ///
-  virtual bool runOnModule(Module &M);
-
   /// run - On a function, we simply initialize, run the function, then
   /// finalize.
   ///
index 41a87d60ad647c2d9aa56d315e0f8735815d6197..1afebc54eee06aef4a38999110df1e9661bed1db 100644 (file)
@@ -141,19 +141,6 @@ Pass *FunctionPass::createPrinterPass(raw_ostream &O,
   return createPrintFunctionPass(Banner, &O);
 }
 
-// run - On a module, we run this pass by initializing, runOnFunction'ing once
-// for every function in the module, then by finalizing.
-//
-bool FunctionPass::runOnModule(Module &M) {
-  bool Changed = doInitialization(M);
-
-  for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
-    if (!I->isDeclaration())      // Passes are not run on external functions!
-    Changed |= runOnFunction(*I);
-
-  return Changed | doFinalization(M);
-}
-
 // run - On a function, we simply initialize, run the function, then finalize.
 //
 bool FunctionPass::run(Function &F) {