[llvm] r187940 - [objc-arc] Change 4 iterator methods which return const_iterators to be const methods.
Michael Gottesman
mgottesman at apple.com
Wed Aug 7 16:56:35 PDT 2013
Author: mgottesman
Date: Wed Aug 7 18:56:34 2013
New Revision: 187940
URL: http://llvm.org/viewvc/llvm-project?rev=187940&view=rev
Log:
[objc-arc] Change 4 iterator methods which return const_iterators to be const methods.
Modified:
llvm/trunk/lib/Transforms/ObjCARC/ObjCARCOpts.cpp
Modified: llvm/trunk/lib/Transforms/ObjCARC/ObjCARCOpts.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/ObjCARC/ObjCARCOpts.cpp?rev=187940&r1=187939&r2=187940&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/ObjCARC/ObjCARCOpts.cpp (original)
+++ llvm/trunk/lib/Transforms/ObjCARC/ObjCARCOpts.cpp Wed Aug 7 18:56:34 2013
@@ -756,10 +756,10 @@ namespace {
// Specialized CFG utilities.
typedef SmallVectorImpl<BasicBlock *>::const_iterator edge_iterator;
- edge_iterator pred_begin() { return Preds.begin(); }
- edge_iterator pred_end() { return Preds.end(); }
- edge_iterator succ_begin() { return Succs.begin(); }
- edge_iterator succ_end() { return Succs.end(); }
+ edge_iterator pred_begin() const { return Preds.begin(); }
+ edge_iterator pred_end() const { return Preds.end(); }
+ edge_iterator succ_begin() const { return Succs.begin(); }
+ edge_iterator succ_end() const { return Succs.end(); }
void addSucc(BasicBlock *Succ) { Succs.push_back(Succ); }
void addPred(BasicBlock *Pred) { Preds.push_back(Pred); }
More information about the llvm-commits
mailing list