[llvm-commits] [llvm] r110847 - in /llvm/trunk: include/llvm/Pass.h lib/VMCore/Pass.cpp

Dan Gohman gohman at apple.com
Wed Aug 11 13:28:16 PDT 2010


Author: djg
Date: Wed Aug 11 15:28:16 2010
New Revision: 110847

URL: http://llvm.org/viewvc/llvm-project?rev=110847&view=rev
Log:
Remove BasicBlockPass::runOnFunction, which was unused.

Modified:
    llvm/trunk/include/llvm/Pass.h
    llvm/trunk/lib/VMCore/Pass.cpp

Modified: llvm/trunk/include/llvm/Pass.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Pass.h?rev=110847&r1=110846&r2=110847&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Pass.h (original)
+++ llvm/trunk/include/llvm/Pass.h Wed Aug 11 15:28:16 2010
@@ -346,12 +346,6 @@
   ///
   virtual bool doFinalization(Module &);
 
-
-  // To run this pass on a function, we simply call runOnBasicBlock once for
-  // each function.
-  //
-  bool runOnFunction(Function &F);
-
   virtual void assignPassManager(PMStack &PMS, 
                                  PassManagerType T);
 

Modified: llvm/trunk/lib/VMCore/Pass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Pass.cpp?rev=110847&r1=110846&r2=110847&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Pass.cpp (original)
+++ llvm/trunk/lib/VMCore/Pass.cpp Wed Aug 11 15:28:16 2010
@@ -166,16 +166,6 @@
   return 0;
 }
 
-// To run this pass on a function, we simply call runOnBasicBlock once for each
-// function.
-//
-bool BasicBlockPass::runOnFunction(Function &F) {
-  bool Changed = doInitialization(F);
-  for (Function::iterator I = F.begin(), E = F.end(); I != E; ++I)
-    Changed |= runOnBasicBlock(*I);
-  return Changed | doFinalization(F);
-}
-
 bool BasicBlockPass::doInitialization(Module &) {
   // By default, don't do anything.
   return false;





More information about the llvm-commits mailing list