On Dec 23, 2010, at 3:34 AM, Sebastian Redl wrote: > On 23.12.2010 06:25, sashan wrote: >> 2. Why was a home-brew list used to store the list of switch cases? I >> would >> rather it used std::list. In fact I have another rough non-working patch that >> replaces the list with std::set and when new switch cases are added they are >> inserted in source order because the set is declared with a functor that >> decides >> the source order of 2 switch cases. > Please read http://llvm.org/docs/ProgrammersManual.html#datastructure . > Use the right datastructure. If you believe that something other than > what is currently used is better, propose a patch.
Another approach to "SmallContainer": http://home.roadrunner.com/~hinnant/stack_alloc.html -Howard _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
