diff options
author | Chris Lattner <sabre@nondot.org> | 2004-09-20 04:48:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-09-20 04:48:05 +0000 |
commit | 4f2cf030e899f5fea5c2760326c853e89a2e8235 (patch) | |
tree | 88ec23feccde977902434fd327c6d95671c475fe /llvm/tools/bugpoint/ExtractFunction.cpp | |
parent | 79e523de04b67fc0fbc73baf6605707b7aa91e65 (diff) | |
download | bcm5719-llvm-4f2cf030e899f5fea5c2760326c853e89a2e8235.tar.gz bcm5719-llvm-4f2cf030e899f5fea5c2760326c853e89a2e8235.zip |
'Pass' should now not be derived from by clients. Instead, they should derive
from ModulePass. Instead of implementing Pass::run, then should implement
ModulePass::runOnModule.
llvm-svn: 16436
Diffstat (limited to 'llvm/tools/bugpoint/ExtractFunction.cpp')
-rw-r--r-- | llvm/tools/bugpoint/ExtractFunction.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/tools/bugpoint/ExtractFunction.cpp b/llvm/tools/bugpoint/ExtractFunction.cpp index cf02ef73a95..d65736a1ead 100644 --- a/llvm/tools/bugpoint/ExtractFunction.cpp +++ b/llvm/tools/bugpoint/ExtractFunction.cpp @@ -211,14 +211,14 @@ namespace { /// BlockExtractorPass - This pass is used by bugpoint to extract all blocks /// from the module into their own functions except for those specified by the /// BlocksToNotExtract list. - class BlockExtractorPass : public Pass { - bool run(Module &M); + class BlockExtractorPass : public ModulePass { + bool runOnModule(Module &M); }; RegisterOpt<BlockExtractorPass> XX("extract-bbs", "Extract Basic Blocks From Module (for bugpoint use)"); } -bool BlockExtractorPass::run(Module &M) { +bool BlockExtractorPass::runOnModule(Module &M) { std::set<BasicBlock*> TranslatedBlocksToNotExtract; for (unsigned i = 0, e = BlocksToNotExtract.size(); i != e; ++i) { BasicBlock *BB = BlocksToNotExtract[i]; |