diff options
author | Hongbin Zheng <etherzhhb@gmail.com> | 2012-08-27 13:49:24 +0000 |
---|---|---|
committer | Hongbin Zheng <etherzhhb@gmail.com> | 2012-08-27 13:49:24 +0000 |
commit | 23a22a29441b8b7d948e6ff7c2afb39e6528cfbd (patch) | |
tree | 0bb4504427bfc0b72c531a3ebb1eb25ebfd21baf /lib/Analysis/RegionPass.cpp | |
parent | 3b4998fd8bb0c9e6c0c0a5cfc79cf4df0b0d75f7 (diff) |
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
Diffstat (limited to 'lib/Analysis/RegionPass.cpp')
-rw-r--r-- | lib/Analysis/RegionPass.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Analysis/RegionPass.cpp b/lib/Analysis/RegionPass.cpp index c97b5ebd7d..9208fa21d7 100644 --- a/lib/Analysis/RegionPass.cpp +++ b/lib/Analysis/RegionPass.cpp @@ -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; } |