diff options
author | Rui Ueyama <ruiu@google.com> | 2016-05-25 04:07:17 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2016-05-25 04:07:17 +0000 |
commit | b12b158f20ce85f24a099a0e23279c5e8bf1f445 (patch) | |
tree | 64cfe5fe4ec9b5eded23a8898386bf402527a69b /llvm/lib/DebugInfo/PDB/Raw/NameHashTable.cpp | |
parent | c59261ca379981d803dfe837bbcc0a31aac4a96d (diff) | |
download | llvm-b12b158f20ce85f24a099a0e23279c5e8bf1f445.zip llvm-b12b158f20ce85f24a099a0e23279c5e8bf1f445.tar.gz llvm-b12b158f20ce85f24a099a0e23279c5e8bf1f445.tar.bz2 |
pdbdump: fix bug in name hash table.
name_ids() did not return all IDs but only the first NameCount items.
The number of non-zero entries in IDs vector is NameCount, but it
does not mean that all non-zero entries are at the beginning of IDs
vector.
Differential Revision: http://reviews.llvm.org/D20611
llvm-svn: 270656
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Raw/NameHashTable.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/PDB/Raw/NameHashTable.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Raw/NameHashTable.cpp b/llvm/lib/DebugInfo/PDB/Raw/NameHashTable.cpp index 2ecb02d..2005c39 100644 --- a/llvm/lib/DebugInfo/PDB/Raw/NameHashTable.cpp +++ b/llvm/lib/DebugInfo/PDB/Raw/NameHashTable.cpp @@ -147,6 +147,4 @@ uint32_t NameHashTable::getIDForString(StringRef Str) const { return IDs[0]; } -ArrayRef<uint32_t> NameHashTable::name_ids() const { - return ArrayRef<uint32_t>(IDs).slice(1, NameCount); -} +ArrayRef<uint32_t> NameHashTable::name_ids() const { return IDs; } |