diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-10-17 00:10:34 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-10-17 00:10:34 +0000 |
commit | 88a68cbbb57aa9caef60dbd2f63d908983e77465 (patch) | |
tree | a4eea1a92a66c52736b80f1cb285eeda3c333804 /lib/CodeGen/AsmPrinter/DIEHash.cpp | |
parent | c0987082206d202c20ebe1d528c1b28a875160ac (diff) | |
download | external_llvm-88a68cbbb57aa9caef60dbd2f63d908983e77465.zip external_llvm-88a68cbbb57aa9caef60dbd2f63d908983e77465.tar.gz external_llvm-88a68cbbb57aa9caef60dbd2f63d908983e77465.tar.bz2 |
DIEHash: Include the type's context in the type hash.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192856 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DIEHash.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DIEHash.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DIEHash.cpp b/lib/CodeGen/AsmPrinter/DIEHash.cpp index 9a26e72..8409a7f 100644 --- a/lib/CodeGen/AsmPrinter/DIEHash.cpp +++ b/lib/CodeGen/AsmPrinter/DIEHash.cpp @@ -466,6 +466,9 @@ uint64_t DIEHash::computeCUSignature(DIE *Die) { /// standard. uint64_t DIEHash::computeTypeSignature(DIE *Die) { + if (DIE *Parent = Die->getParent()) + addParentContext(Parent); + // Hash the DIE. computeHash(Die); |