diff options
author | Chris Lattner <sabre@nondot.org> | 2002-04-08 22:03:00 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-04-08 22:03:00 +0000 |
commit | 237e6d10f24863cf48821b601b4164794e89d847 (patch) | |
tree | 5720ecbff3742315d087c34777c5ce4cca353c52 /lib/Transforms/Scalar/IndVarSimplify.cpp | |
parent | 4d669b510c1d609c6b3fe98ac14ae38bd7c011f6 (diff) |
s/Method/Function
Remove extraneous #includes of llvm/Assembly/Writer
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2178 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/IndVarSimplify.cpp')
-rw-r--r-- | lib/Transforms/Scalar/IndVarSimplify.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index fcf49e171a..e852452d75 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -187,7 +187,7 @@ static bool TransformLoop(cfg::LoopInfo *Loops, cfg::Loop *Loop) { return Changed; } -static bool doit(Method *M, cfg::LoopInfo &Loops) { +static bool doit(Function *M, cfg::LoopInfo &Loops) { // Induction Variables live in the header nodes of the loops of the method... return reduce_apply_bool(Loops.getTopLevelLoops().begin(), Loops.getTopLevelLoops().end(), @@ -197,8 +197,8 @@ static bool doit(Method *M, cfg::LoopInfo &Loops) { namespace { struct InductionVariableSimplify : public MethodPass { - virtual bool runOnMethod(Method *M) { - return doit(M, getAnalysis<cfg::LoopInfo>()); + virtual bool runOnMethod(Function *F) { + return doit(F, getAnalysis<cfg::LoopInfo>()); } virtual void getAnalysisUsageInfo(Pass::AnalysisSet &Required, |