aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/IntervalPartition.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-28 16:21:30 +0000
committerChris Lattner <sabre@nondot.org>2002-04-28 16:21:30 +0000
commit1b7f7dc4b45a900fae2e9b062d588a995935727a (patch)
treef0853819719944846cc56e8742935169d838249e /lib/Analysis/IntervalPartition.cpp
parent8fc2f2072de83665ae20e06929e28317f449bcdf (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/Analysis/IntervalPartition.cpp')
-rw-r--r--lib/Analysis/IntervalPartition.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/Analysis/IntervalPartition.cpp b/lib/Analysis/IntervalPartition.cpp
index bb0f582108..a774c5c2b2 100644
--- a/lib/Analysis/IntervalPartition.cpp
+++ b/lib/Analysis/IntervalPartition.cpp
@@ -1,6 +1,6 @@
//===- IntervalPartition.cpp - Interval Partition module code ----*- C++ -*--=//
//
-// This file contains the definition of the cfg::IntervalPartition class, which
+// This file contains the definition of the IntervalPartition class, which
// calculates and represent the interval partition of a function.
//
//===----------------------------------------------------------------------===//
@@ -8,7 +8,6 @@
#include "llvm/Analysis/IntervalIterator.h"
#include "Support/STLExtras.h"
-using namespace cfg;
using std::make_pair;
AnalysisID IntervalPartition::ID(AnalysisID::create<IntervalPartition>());
@@ -19,7 +18,7 @@ AnalysisID IntervalPartition::ID(AnalysisID::create<IntervalPartition>());
// destroy - Reset state back to before function was analyzed
void IntervalPartition::destroy() {
- for_each(begin(), end(), deleter<cfg::Interval>);
+ for_each(begin(), end(), deleter<Interval>);
IntervalMap.clear();
RootInterval = 0;
}
@@ -42,7 +41,7 @@ void IntervalPartition::addIntervalToPartition(Interval *I) {
// run through all of the intervals and propogate successor info as
// predecessor info.
//
-void IntervalPartition::updatePredecessors(cfg::Interval *Int) {
+void IntervalPartition::updatePredecessors(Interval *Int) {
BasicBlock *Header = Int->getHeaderNode();
for (Interval::succ_iterator I = Int->Successors.begin(),
E = Int->Successors.end(); I != E; ++I)