From 42ec334ea321f0ad9195a2ec7900a3fd4a7c16c3 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 28 Apr 2002 16:21:53 +0000 Subject: [PATCH] Eliminate the cfg namespace llvm-svn: 2371 --- llvm/tools/analyze/analyze.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/llvm/tools/analyze/analyze.cpp b/llvm/tools/analyze/analyze.cpp index 141f0dfe692e..85d6ae4d64b7 100644 --- a/llvm/tools/analyze/analyze.cpp +++ b/llvm/tools/analyze/analyze.cpp @@ -1,5 +1,5 @@ //===----------------------------------------------------------------------===// -// LLVM 'Analyze' UTILITY +// The LLVM analyze utility // // This utility is designed to print out the results of running various analysis // passes on a program. This is useful for understanding a program, or for @@ -141,7 +141,7 @@ struct InstForest : public FunctionPass { struct IndVars : public FunctionPass { void doit(Function *F) { - cfg::LoopInfo &LI = getAnalysis(); + LoopInfo &LI = getAnalysis(); for (inst_iterator I = inst_begin(F), E = inst_end(F); I != E; ++I) if (PHINode *PN = dyn_cast(*I)) { InductionVariable IV(PN, &LI); @@ -151,7 +151,7 @@ struct IndVars : public FunctionPass { } void getAnalysisUsage(AnalysisUsage &AU) const { - AU.addRequired(cfg::LoopInfo::ID); + AU.addRequired(LoopInfo::ID); } }; @@ -254,8 +254,8 @@ struct { } AnTable[] = { // Global analyses { print , NewPrintFunction }, - { intervals , New }, - { loops , New }, + { intervals , New }, + { loops , New }, { instforest , Create > }, { indvars , Create > }, { exprs , Create > }, @@ -268,15 +268,15 @@ struct { { unsafepointertypes, New }, // Dominator analyses - { domset , New }, - { idom , New }, - { domtree , New }, - { domfrontier , New }, + { domset , New }, + { idom , New }, + { domtree , New }, + { domfrontier , New }, - { postdomset , New }, - { postidom , New }, - { postdomtree , New }, - { postdomfrontier , New }, + { postdomset , New }, + { postidom , New }, + { postdomtree , New }, + { postdomfrontier , New }, }; int main(int argc, char **argv) {