[PATCH] D16571: Compute the DISubprogram hash key partially (NFC)

Mehdi AMINI via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 5 23:13:56 PST 2016


joker.eph updated this revision to Diff 49892.
joker.eph updated the summary for this revision.
joker.eph added a comment.

Change the order of arguments as suggested by Eric.

Duncan?


http://reviews.llvm.org/D16571

Files:
  lib/IR/LLVMContextImpl.h

Index: lib/IR/LLVMContextImpl.h
===================================================================
--- lib/IR/LLVMContextImpl.h
+++ lib/IR/LLVMContextImpl.h
@@ -365,8 +365,7 @@
            ExtraData == RHS->getRawExtraData();
   }
   unsigned getHashValue() const {
-    return hash_combine(Tag, Name, File, Line, Scope, BaseType, SizeInBits,
-                        AlignInBits, OffsetInBits, Flags, ExtraData);
+    return hash_combine(Name, File, Line, Scope, BaseType);
   }
 };
 
@@ -422,9 +421,7 @@
            Identifier == RHS->getIdentifier();
   }
   unsigned getHashValue() const {
-    return hash_combine(Tag, Name, File, Line, Scope, BaseType, SizeInBits,
-                        AlignInBits, OffsetInBits, Flags, Elements, RuntimeLang,
-                        VTableHolder, TemplateParams, Identifier);
+    return hash_combine(Name, File, Line, Scope, SizeInBits, Elements);
   }
 };
 
@@ -518,10 +515,7 @@
            Variables == RHS->getRawVariables();
   }
   unsigned getHashValue() const {
-    return hash_combine(Scope, Name, LinkageName, File, Line, Type,
-                        IsLocalToUnit, IsDefinition, ScopeLine, ContainingType,
-                        Virtuality, VirtualIndex, Flags, IsOptimized,
-                        TemplateParams, Declaration, Variables);
+    return hash_combine(File, Line, Type, Scope);
   }
 };
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16571.49892.patch
Type: text/x-patch
Size: 1365 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160306/3854aa78/attachment.bin>


More information about the llvm-commits mailing list