diff options
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Raw/HashTable.cpp')
| -rw-r--r-- | llvm/lib/DebugInfo/PDB/Raw/HashTable.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Raw/HashTable.cpp b/llvm/lib/DebugInfo/PDB/Raw/HashTable.cpp index b218f3d8f38..aadc13e53a5 100644 --- a/llvm/lib/DebugInfo/PDB/Raw/HashTable.cpp +++ b/llvm/lib/DebugInfo/PDB/Raw/HashTable.cpp @@ -99,6 +99,12 @@ Error HashTable::commit(msf::StreamWriter &Writer) const { return Error::success(); } +void HashTable::clear() { + Buckets.resize(8); + Present.clear(); + Deleted.clear(); +} + uint32_t HashTable::capacity() const { return Buckets.size(); } uint32_t HashTable::size() const { return Present.count(); } |

