From: Chris Lattner Date: Sun, 28 Apr 2002 16:21:53 +0000 (+0000) Subject: Eliminate the cfg namespace X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4ec35ab1c6d3f25f1ee171739e7d21b6dc0d2040;p=oota-llvm.git Eliminate the cfg namespace git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2371 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/analyze/analyze.cpp b/tools/analyze/analyze.cpp index 141f0dfe692..85d6ae4d64b 100644 --- a/tools/analyze/analyze.cpp +++ b/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 }, - - { postdomset , New }, - { postidom , New }, - { postdomtree , New }, - { postdomfrontier , New }, + { domset , New }, + { idom , New }, + { domtree , New }, + { domfrontier , New }, + + { postdomset , New }, + { postidom , New }, + { postdomtree , New }, + { postdomfrontier , New }, }; int main(int argc, char **argv) {