diff options
author | Dan Gohman <gohman@apple.com> | 2010-08-11 19:11:05 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-08-11 19:11:05 +0000 |
commit | 1f9a1608a65c17f9e103d0948efef764aa87aafa (patch) | |
tree | 3ddab07a18a87538687a61b12c54c5ba8fe3b170 /lib/VMCore | |
parent | 73e88002290920f2d1599bde7878ed01a9e8c242 (diff) | |
download | external_llvm-1f9a1608a65c17f9e103d0948efef764aa87aafa.zip external_llvm-1f9a1608a65c17f9e103d0948efef764aa87aafa.tar.gz external_llvm-1f9a1608a65c17f9e103d0948efef764aa87aafa.tar.bz2 |
Delete FunctionPass::run, which is unused.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110843 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/Pass.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/VMCore/Pass.cpp b/lib/VMCore/Pass.cpp index 1afebc5..70b2d1d 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; |