[compiler-rt] r257858 - sanitizer_common: C++ify the IntrusiveList iterator interface.
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 15 11:29:03 PST 2016
On Thu, Jan 14, 2016 at 09:00:32PM -0800, David Blaikie wrote:
> On Thu, Jan 14, 2016 at 6:19 PM, Peter Collingbourne via llvm-commits <
> llvm-commits at lists.llvm.org> wrote:
>
> > Author: pcc
> > Date: Thu Jan 14 20:19:20 2016
> > New Revision: 257858
> >
> > URL: http://llvm.org/viewvc/llvm-project?rev=257858&view=rev
> > Log:
> > sanitizer_common: C++ify the IntrusiveList iterator interface.
> >
> > Modified:
> > compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.cc
> > compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.h
> >
> > compiler-rt/trunk/lib/sanitizer_common/sanitizer_coverage_mapping_libcdep.cc
> > compiler-rt/trunk/lib/sanitizer_common/sanitizer_list.h
> > compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer.h
> > compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer_libcdep.cc
> >
> > Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.cc
> > URL:
> > http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.cc?rev=257858&r1=257857&r2=257858&view=diff
> >
> > ==============================================================================
> > --- compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.cc (original)
> > +++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_common.cc Thu Jan 14
> > 20:19:20 2016
> > @@ -355,9 +355,8 @@ void LoadedModule::addAddressRange(uptr
> > }
> >
> > bool LoadedModule::containsAddress(uptr address) const {
> > - for (Iterator iter = ranges(); iter.hasNext();) {
> > - const AddressRange *r = iter.next();
> > - if (r->beg <= address && address < r->end)
> > + for (const AddressRange &r : ranges()) {
> > + if (r.beg <= address && address < r.end)
> > return true;
> >
>
> llvm::any_of?
We can't use LLVM libraries in compiler-rt.
Thanks,
--
Peter
More information about the llvm-commits
mailing list