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

Mehdi AMINI via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 26 12:43:24 PST 2016


joker.eph updated this revision to Diff 46036.
joker.eph added a comment.

Applies to other metadata types


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->getRawIdentifier();
   }
   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);
   }
 };
 
@@ -519,10 +516,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(Scope, File, Type, Line);
   }
 };
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16571.46036.patch
Type: text/x-patch
Size: 1368 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160126/421f68ad/attachment.bin>


More information about the llvm-commits mailing list