<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 9, 2013 at 12:04 AM, Shankar Easwaran <span dir="ltr"><<a href="mailto:shankare@codeaurora.org" target="_blank">shankare@codeaurora.org</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">On 5/8/2013 12:38 AM, Michael Spencer wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Tue, May 7, 2013 at 10:08 PM, Nick Kledzik <<a href="mailto:kledzik@apple.com" target="_blank">kledzik@apple.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Shankar,<br>
<br>
Do you mean add a method like:<br>
<br>
virtual unsigned contentHash() const = 0;<br>
<br>
or maybe:<br>
<br>
virtual llvm::hash_code contentHash() const = 0<br>
</blockquote></blockquote></div>
We could use a crypto hash too with the function prototype that looks like :-<br>
<br>
virtual lld::crypto::sha256 contentHash() const = 0</blockquote><div> </div><div style>I'd use SHA128 or MD5 as the linker does not handle hostile input. I think as long as it's collision free, it should suffice.</div>
</div></div></div>