aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Transforms/Scalar/InstructionCombining.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-01-21 07:31:50 +0000
committerChris Lattner <sabre@nondot.org>2002-01-21 07:31:50 +0000
commitf4de63f65fa995e68e3cd268117ab065068be413 (patch)
tree2fd8cd44af0f23dafd94102c1c0152b1cd82fe4d /include/llvm/Transforms/Scalar/InstructionCombining.h
parentaff5bcebb7fb9880e0a3518a8e7c999e738d531c (diff)
downloadexternal_llvm-f4de63f65fa995e68e3cd268117ab065068be413.zip
external_llvm-f4de63f65fa995e68e3cd268117ab065068be413.tar.gz
external_llvm-f4de63f65fa995e68e3cd268117ab065068be413.tar.bz2
Implement a more powerful, simpler, pass system. This pass system can figure
out how to run a collection of passes optimially given their behaviors and charactaristics. Convert code to use it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1507 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms/Scalar/InstructionCombining.h')
-rw-r--r--include/llvm/Transforms/Scalar/InstructionCombining.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Transforms/Scalar/InstructionCombining.h b/include/llvm/Transforms/Scalar/InstructionCombining.h
index 09762d1..c79a1ca 100644
--- a/include/llvm/Transforms/Scalar/InstructionCombining.h
+++ b/include/llvm/Transforms/Scalar/InstructionCombining.h
@@ -17,11 +17,11 @@
#include "llvm/Pass.h"
-struct InstructionCombining : public Pass {
+struct InstructionCombining : public MethodPass {
static bool doit(Method *M);
static bool CombineInstruction(Instruction *I);
- virtual bool doPerMethodWork(Method *M) { return doit(M); }
+ virtual bool runOnMethod(Method *M) { return doit(M); }
};
#endif