diff options
Diffstat (limited to 'llvm/lib/Transforms/Scalar/InstructionCombining.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index c2fa84c21f7..dea024442de 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp @@ -27,7 +27,7 @@ namespace { - class InstCombiner : public MethodPass, + class InstCombiner : public FunctionPass, public InstVisitor<InstCombiner, Instruction*> { // Worklist of all of the instructions that need to be simplified. std::vector<Instruction*> WorkList; @@ -44,7 +44,7 @@ namespace { public: - virtual bool runOnMethod(Function *F); + virtual bool runOnFunction(Function *F); // Visitation implementation - Implement instruction combining for different // instruction types. The semantics are as follows: @@ -205,7 +205,7 @@ Instruction *InstCombiner::visitMemAccessInst(MemAccessInst *MAI) { } -bool InstCombiner::runOnMethod(Function *F) { +bool InstCombiner::runOnFunction(Function *F) { bool Changed = false; WorkList.insert(WorkList.end(), inst_begin(F), inst_end(F)); |