<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Oct 19, 2013 at 7:36 AM, Rafael Espíndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">>> Can we use a DenseMap instead of a std::map?<br>
><br>
><br>
> Would require a bit more work - DenseMap can't handle a pair<string, string><br>
> key (no tombstone value), not sure if there's something I can do to address<br>
> that.<br>
<br>
</div>You would probably need to create dedicated class for the pair and<br>
implement densemapinfo for it. This is probably not too hot, lets keep<br>
the std::map for now and benchmark it once the rest of the patch is<br>
done.<br>
<div class="im"><br>
>><br>
>> Can you add a new test and leave comdat.s unchanged? Would make it<br>
>> easier to see that the new code behaves the same in the case of<br>
>> distinct names.<br>
><br>
><br>
> I tend to prefer avoiding adding new test files if possible (keeping testing<br>
> related to the same feature together) to avoid excess process execution<br>
> overhead.<br>
><br>
> It seems fairly easy to split out examples of different names and the same<br>
> name so they're all tested, but tested separately, in the same file.<br>
><br>
> But I'm not wedded to the idea either.<br>
<br>
</div>At least for now please add a second test. Object file dumps are<br>
somewhat unstable, which makes the test changes hard to read.<br></blockquote><div><br></div><div>Attached an updated patch that has a separate test, removes the RuntimeDyLib and another bit of noise in the change, and reverts the reloc section ungrouping change.<br>
<br>Thanks,<br>- David</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
A followup patch doing nothing but merging the tests would probably be OK.<br>
<br>
Cheers,<br>
Rafael<br>
</blockquote></div><br></div></div>