[cfe-commits] Mark virtual members used in a deterministic order

Chandler Carruth chandlerc at google.com
Sun Aug 26 19:17:00 PDT 2012


Rather than a special purpose data structure here, could you instead build
a MapVector analogous to SetVector which works essentially the same way and
provides nice stable iteration order?


On Sun, Aug 26, 2012 at 4:33 PM, Rafael EspĂ­ndola <
rafael.espindola at gmail.com> wrote:

> > 4 Add a deterministic iterator to CXXFinalOverriderMap.
> >
>
> I decided to try to implement this and I think the result is a bit
> better. The densemap in  CXXFinalOverriderMap now maps to indexes in a
> vector of values. This works because we never remove an element from
> it. When we want to iterate over all the values, we just use the
> vector.
>
> Cheers,
> Rafael
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120826/7a0be449/attachment.html>


More information about the cfe-commits mailing list