diff options
author | Chris Lattner <sabre@nondot.org> | 2002-04-28 16:21:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-04-28 16:21:30 +0000 |
commit | 1b7f7dc4b45a900fae2e9b062d588a995935727a (patch) | |
tree | f0853819719944846cc56e8742935169d838249e /lib/Transforms/Scalar/IndVarSimplify.cpp | |
parent | 8fc2f2072de83665ae20e06929e28317f449bcdf (diff) |
Eliminate the cfg namespace, moving LoopInfo, Dominators, Interval* classes
to the global namespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2370 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/IndVarSimplify.cpp')
-rw-r--r-- | lib/Transforms/Scalar/IndVarSimplify.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index 40ee5c7f83..d9b8415992 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -33,7 +33,7 @@ static Instruction *InsertCast(Instruction *Val, const Type *Ty, return Cast; } -static bool TransformLoop(cfg::LoopInfo *Loops, cfg::Loop *Loop) { +static bool TransformLoop(LoopInfo *Loops, Loop *Loop) { // Transform all subloops before this loop... bool Changed = reduce_apply_bool(Loop->getSubLoops().begin(), Loop->getSubLoops().end(), @@ -187,7 +187,7 @@ static bool TransformLoop(cfg::LoopInfo *Loops, cfg::Loop *Loop) { return Changed; } -static bool doit(Function *M, cfg::LoopInfo &Loops) { +static bool doit(Function *M, LoopInfo &Loops) { // Induction Variables live in the header nodes of the loops of the function return reduce_apply_bool(Loops.getTopLevelLoops().begin(), Loops.getTopLevelLoops().end(), @@ -198,11 +198,11 @@ static bool doit(Function *M, cfg::LoopInfo &Loops) { namespace { struct InductionVariableSimplify : public FunctionPass { virtual bool runOnFunction(Function *F) { - return doit(F, getAnalysis<cfg::LoopInfo>()); + return doit(F, getAnalysis<LoopInfo>()); } virtual void getAnalysisUsage(AnalysisUsage &AU) const { - AU.addRequired(cfg::LoopInfo::ID); + AU.addRequired(LoopInfo::ID); } }; } |