<div dir="ltr">I'll let Duncan review this more, but as a quick side note - would you mind making the ordering of arguments a little more regular? Name, File, Line, Scope or something?<div><br></div><div>-eric</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Jan 26, 2016 at 12:43 PM Mehdi AMINI via llvm-commits <<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">joker.eph updated this revision to Diff 46036.<br>
joker.eph added a comment.<br>
<br>
Applies to other metadata types<br>
<br>
<br>
<a href="http://reviews.llvm.org/D16571" rel="noreferrer" target="_blank">http://reviews.llvm.org/D16571</a><br>
<br>
Files:<br>
lib/IR/LLVMContextImpl.h<br>
<br>
Index: lib/IR/LLVMContextImpl.h<br>
===================================================================<br>
--- lib/IR/LLVMContextImpl.h<br>
+++ lib/IR/LLVMContextImpl.h<br>
@@ -365,8 +365,7 @@<br>
ExtraData == RHS->getRawExtraData();<br>
}<br>
unsigned getHashValue() const {<br>
- return hash_combine(Tag, Name, File, Line, Scope, BaseType, SizeInBits,<br>
- AlignInBits, OffsetInBits, Flags, ExtraData);<br>
+ return hash_combine(Name, File, Line, Scope, BaseType);<br>
}<br>
};<br>
<br>
@@ -422,9 +421,7 @@<br>
Identifier == RHS->getRawIdentifier();<br>
}<br>
unsigned getHashValue() const {<br>
- return hash_combine(Tag, Name, File, Line, Scope, BaseType, SizeInBits,<br>
- AlignInBits, OffsetInBits, Flags, Elements, RuntimeLang,<br>
- VTableHolder, TemplateParams, Identifier);<br>
+ return hash_combine(Name, File, Line, Scope, SizeInBits, Elements);<br>
}<br>
};<br>
<br>
@@ -519,10 +516,7 @@<br>
Variables == RHS->getRawVariables();<br>
}<br>
unsigned getHashValue() const {<br>
- return hash_combine(Scope, Name, LinkageName, File, Line, Type,<br>
- IsLocalToUnit, IsDefinition, ScopeLine, ContainingType,<br>
- Virtuality, VirtualIndex, Flags, IsOptimized,<br>
- TemplateParams, Declaration, Variables);<br>
+ return hash_combine(Scope, File, Type, Line);<br>
}<br>
};<br>
<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</blockquote></div>