mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-16 12:24:03 +00:00
remove use of compat_iterator.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20643 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user