OSDN Git Service

Refactor the PDB HashTable class.
authorZachary Turner <zturner@google.com>
Thu, 15 Mar 2018 17:38:26 +0000 (17:38 +0000)
committerZachary Turner <zturner@google.com>
Thu, 15 Mar 2018 17:38:26 +0000 (17:38 +0000)
commit1ae46a07efaa43cffe5eed93df20e81a2c8fe49b
tree0db877628232220ed96cfe7fd50d49cf4f8be769
parent457b8b54363afdcd10199f70836ca623720349ab
Refactor the PDB HashTable class.

It previously only worked when the key and value types were
both 4 byte integers.  We now have a use case for a non trivial
value type, so we need to extend it to support arbitrary value
types, which means templatizing it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@327647 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/PDB/Native/HashTable.h
include/llvm/DebugInfo/PDB/Native/NamedStreamMap.h
include/llvm/DebugInfo/PDB/Native/TpiStream.h
lib/DebugInfo/PDB/Native/HashTable.cpp
lib/DebugInfo/PDB/Native/NamedStreamMap.cpp
lib/DebugInfo/PDB/Native/TpiStream.cpp
tools/llvm-pdbutil/Analyze.cpp
unittests/DebugInfo/PDB/HashTableTest.cpp