[PATCH] D16571: Compute the DISubprogram hash key partially (NFC)
Mehdi AMINI via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 7 01:44:38 PST 2016
joker.eph updated this revision to Diff 49938.
joker.eph added a comment.
Update field list: checked an LTO build of llvm-tblgen and made sure there are (almost) no collisions.
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(Tag, Name, File, Line, Scope, BaseType, Flags);
}
};
@@ -422,9 +421,8 @@
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, BaseType, Scope, Elements,
+ TemplateParams);
}
};
@@ -518,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(Name, Scope, File, Type, Line);
}
};
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16571.49938.patch
Type: text/x-patch
Size: 1422 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160307/e4fa349b/attachment.bin>
More information about the llvm-commits
mailing list