This repository was archived by the owner on Mar 28, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ using namespace llvm::pdb;
30
30
using namespace llvm ::codeview;
31
31
32
32
struct llvm ::pdb::GSIHashStreamBuilder {
33
- struct UdtDenseMapInfo {
33
+ struct SymbolDenseMapInfo {
34
34
static inline CVSymbol getEmptyKey () {
35
35
static CVSymbol Empty;
36
36
return Empty;
@@ -50,7 +50,7 @@ struct llvm::pdb::GSIHashStreamBuilder {
50
50
51
51
std::vector<CVSymbol> Records;
52
52
uint32_t StreamIndex;
53
- llvm::DenseSet<CVSymbol, UdtDenseMapInfo> UdtHashes ;
53
+ llvm::DenseSet<CVSymbol, SymbolDenseMapInfo> SymbolHashes ;
54
54
std::vector<PSHashRecord> HashRecords;
55
55
std::array<support::ulittle32_t , (IPHR_HASH + 32 ) / 32 > HashBitmap;
56
56
std::vector<support::ulittle32_t > HashBuckets;
@@ -66,8 +66,8 @@ struct llvm::pdb::GSIHashStreamBuilder {
66
66
CodeViewContainer::Pdb));
67
67
}
68
68
void addSymbol (const CVSymbol &Symbol) {
69
- if (Symbol.kind () == S_UDT) {
70
- auto Iter = UdtHashes .insert (Symbol);
69
+ if (Symbol.kind () == S_UDT || Symbol. kind () == S_CONSTANT ) {
70
+ auto Iter = SymbolHashes .insert (Symbol);
71
71
if (!Iter.second )
72
72
return ;
73
73
}
You can’t perform that action at this time.
0 commit comments