remove use of compat_iterator.

llvm-svn: 20643
This commit is contained in:
Chris Lattner
2005-03-16 22:42:19 +00:00
parent 4559d5f5c0
commit 62462c2314
3 changed files with 15 additions and 14 deletions

View File

@@ -116,10 +116,11 @@ bool DSGC::runOnFunction(Function &F) {
void DSGC::verify(const DSGraph &G) {
// Loop over all of the nodes, checking to see if any are collapsed...
if (AbortIfAnyCollapsed) {
for (DSGraph::node_iterator I = G.node_begin(), E = G.node_end(); I!=E; ++I)
if ((*I)->isNodeCompletelyFolded()) {
for (DSGraph::node_const_iterator I = G.node_begin(), E = G.node_end();
I != E; ++I)
if (I->isNodeCompletelyFolded()) {
std::cerr << "Node is collapsed: ";
(*I)->print(std::cerr, &G);
I->print(std::cerr, &G);
abort();
}
}