llvm-project/llvm/unittests/DebugInfo/PDB
Nico Weber 51a52b5893 PDB HashTable: Move TraitsT from class parameter to the methods that need it
The traits object is only used by a few methods. Deserializing a hash
table and walking it is possible without the traits object, so it
shouldn't be required to build a dummy object for that use case.

The TraitsT object used to be a function template parameter before
r327647, this restores it to that state.

This makes it clear that the traits object isn't needed at all in 1 of
the current 3 uses of HashTable (and I am going to add another use that
doesn't need it), and that the default PdbHashTraits isn't used outside
of tests.

While here, also re-enable 3 checks in the test that were commented out
(which requires making HashTableInternals templated and giving FooBar
an operator==).

No intended behavior change.

Differential Revision: https://reviews.llvm.org/D64640

llvm-svn: 365974
2019-07-12 23:30:55 +00:00
..
Inputs [PDB] Refactor the PDB symbol classes to fix a reuse bug. 2018-09-05 23:30:38 +00:00
CMakeLists.txt Introduce explicit add_unittest_with_input_files target for tests that use llvm::getInputFileDirectory() 2018-09-14 17:34:46 +00:00
HashTableTest.cpp PDB HashTable: Move TraitsT from class parameter to the methods that need it 2019-07-12 23:30:55 +00:00
NativeSymbolReuseTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
PDBApiTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
StringTableBuilderTest.cpp [PDB] Fix hash function used to write /src/headerblock 2019-04-29 23:09:35 +00:00