Remove the the block_node_iterator of Region, replace it by the block_iterator.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162672 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Hongbin Zheng
2012-08-27 13:49:24 +00:00
parent 3b4998fd8b
commit 23a22a2944
3 changed files with 5 additions and 45 deletions

View File

@@ -195,10 +195,9 @@ public:
virtual bool runOnRegion(Region *R, RGPassManager &RGM) {
Out << Banner;
for (Region::block_node_iterator I = R->block_node_begin(),
E = R->block_node_end();
for (Region::block_iterator I = R->block_begin(), E = R->block_end();
I != E; ++I)
(*I)->getEntry()->print(Out);
(*I)->print(Out);
return false;
}