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/ADCE.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/ADCE.cpp')
-rw-r--r-- | lib/Transforms/Scalar/ADCE.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Transforms/Scalar/ADCE.cpp b/lib/Transforms/Scalar/ADCE.cpp index 71069c617c..7f1fedec24 100644 --- a/lib/Transforms/Scalar/ADCE.cpp +++ b/lib/Transforms/Scalar/ADCE.cpp @@ -43,7 +43,7 @@ public: // doADCE() - Run the Agressive Dead Code Elimination algorithm, returning // true if the function was modified. - bool doADCE(cfg::DominanceFrontier &CDG); + bool doADCE(DominanceFrontier &CDG); //===--------------------------------------------------------------------===// // The implementation of this class @@ -77,7 +77,7 @@ private: // doADCE() - Run the Agressive Dead Code Elimination algorithm, returning // true if the function was modified. // -bool ADCE::doADCE(cfg::DominanceFrontier &CDG) { +bool ADCE::doADCE(DominanceFrontier &CDG) { #ifdef DEBUG_ADCE cerr << "Function: " << M; #endif @@ -134,10 +134,10 @@ bool ADCE::doADCE(cfg::DominanceFrontier &CDG) { // this block is control dependant on as being alive also... // AliveBlocks.insert(BB); // Block is now ALIVE! - cfg::DominanceFrontier::const_iterator It = CDG.find(BB); + DominanceFrontier::const_iterator It = CDG.find(BB); if (It != CDG.end()) { // Get the blocks that this node is control dependant on... - const cfg::DominanceFrontier::DomSetType &CDB = It->second; + const DominanceFrontier::DomSetType &CDB = It->second; for_each(CDB.begin(), CDB.end(), // Mark all their terminators as live bind_obj(this, &ADCE::markTerminatorLive)); } @@ -294,12 +294,12 @@ namespace { // virtual bool runOnFunction(Function *F) { return ADCE(F).doADCE( - getAnalysis<cfg::DominanceFrontier>(cfg::DominanceFrontier::PostDomID)); + getAnalysis<DominanceFrontier>(DominanceFrontier::PostDomID)); } // getAnalysisUsage - We require post dominance frontiers (aka Control // Dependence Graph) virtual void getAnalysisUsage(AnalysisUsage &AU) const { - AU.addRequired(cfg::DominanceFrontier::PostDomID); + AU.addRequired(DominanceFrontier::PostDomID); } }; } |