Fixes for PR341

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14843 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2004-07-15 02:31:46 +00:00
parent f92791ace5
commit 1ff1ff70e3
3 changed files with 16 additions and 15 deletions

View File

@@ -41,14 +41,17 @@ void Interval::print(std::ostream &o) const {
<< "Interval Contents:\n";
// Print out all of the basic blocks in the interval...
std::copy(Nodes.begin(), Nodes.end(),
std::ostream_iterator<BasicBlock*>(o, "\n"));
for (std::vector<BasicBlock*>::const_iterator I = Nodes.begin(),
E = Nodes.end(); I != E; ++I)
o << **I << "\n";
o << "Interval Predecessors:\n";
std::copy(Predecessors.begin(), Predecessors.end(),
std::ostream_iterator<BasicBlock*>(o, "\n"));
for (std::vector<BasicBlock*>::const_iterator I = Predecessors.begin(),
E = Predecessors.end(); I != E; ++I)
o << **I << "\n";
o << "Interval Successors:\n";
std::copy(Successors.begin(), Successors.end(),
std::ostream_iterator<BasicBlock*>(o, "\n"));
for (std::vector<BasicBlock*>::const_iterator I = Successors.begin(),
E = Successors.end(); I != E; ++I)
o << **I << "\n";
}