[llvm-commits] [llvm] r110843 - in /llvm/trunk: include/llvm/Pass.h lib/VMCore/Pass.cpp
Dan Gohman
gohman at apple.com
Wed Aug 11 12:11:05 PDT 2010
Author: djg
Date: Wed Aug 11 14:11:05 2010
New Revision: 110843
URL: http://llvm.org/viewvc/llvm-project?rev=110843&view=rev
Log:
Delete FunctionPass::run, which is 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=110843&r1=110842&r2=110843&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Pass.h (original)
+++ llvm/trunk/include/llvm/Pass.h Wed Aug 11 14:11:05 2010
@@ -295,11 +295,6 @@
///
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);
Modified: llvm/trunk/lib/VMCore/Pass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Pass.cpp?rev=110843&r1=110842&r2=110843&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Pass.cpp (original)
+++ llvm/trunk/lib/VMCore/Pass.cpp Wed Aug 11 14:11:05 2010
@@ -141,17 +141,6 @@
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;
More information about the llvm-commits
mailing list