diff options
author | Gabor Greif <ggreif@gmail.com> | 2010-03-25 23:25:28 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2010-03-25 23:25:28 +0000 |
commit | 44424646ac9db5c4d3919462bd0831ec22783085 (patch) | |
tree | 5f1559f0211cd9481cfce08b0ab111d76ba5fb19 /lib/Analysis/ProfileVerifierPass.cpp | |
parent | da9283cd57843eb21fcd4117833e165017bb9123 (diff) | |
download | external_llvm-44424646ac9db5c4d3919462bd0831ec22783085.tar.gz external_llvm-44424646ac9db5c4d3919462bd0831ec22783085.tar.bz2 external_llvm-44424646ac9db5c4d3919462bd0831ec22783085.zip |
rename pred_const_iterator to const_pred_iterator for consistency's sake
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99567 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/ProfileVerifierPass.cpp')
-rw-r--r-- | lib/Analysis/ProfileVerifierPass.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Analysis/ProfileVerifierPass.cpp b/lib/Analysis/ProfileVerifierPass.cpp index a2ddc8e1f3..5d87e14a97 100644 --- a/lib/Analysis/ProfileVerifierPass.cpp +++ b/lib/Analysis/ProfileVerifierPass.cpp @@ -96,8 +96,8 @@ namespace llvm { double inWeight = 0; int inCount = 0; std::set<const BType*> ProcessedPreds; - for ( pred_const_iterator bbi = pred_begin(BB), bbe = pred_end(BB); - bbi != bbe; ++bbi ) { + for (const_pred_iterator bbi = pred_begin(BB), bbe = pred_end(BB); + bbi != bbe; ++bbi ) { if (ProcessedPreds.insert(*bbi).second) { typename ProfileInfoT<FType, BType>::Edge E = PI->getEdge(*bbi,BB); double EdgeWeight = PI->getEdgeWeight(E); @@ -242,7 +242,7 @@ namespace llvm { // Read predecessors. std::set<const BType*> ProcessedPreds; - pred_const_iterator bpi = pred_begin(BB), bpe = pred_end(BB); + const_pred_iterator bpi = pred_begin(BB), bpe = pred_end(BB); // If there are none, check for (0,BB) edge. if (bpi == bpe) { DI.inWeight += ReadOrAssert(PI->getEdge(0,BB)); |