diff options
author | Zachary Turner <zturner@google.com> | 2017-05-19 04:56:48 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-05-19 04:56:48 +0000 |
commit | 59ab6a381602f102d259706b7cdb13208e31a7bc (patch) | |
tree | d48571bd881f4296439f74a0a95f8fc1ddc923a9 /llvm/tools/llvm-pdbdump/llvm-pdbdump.cpp | |
parent | ee49f4943c3f83513ed2c230f12df3f40f355e03 (diff) | |
download | bcm5719-llvm-59ab6a381602f102d259706b7cdb13208e31a7bc.tar.gz bcm5719-llvm-59ab6a381602f102d259706b7cdb13208e31a7bc.zip |
[CodeView] Reduce memory usage in TypeSerializer.
We were using a BumpPtrAllocator to allocate stable storage for
a record, then trying to insert that into a hash table. If a
collision occurred, the bytes were never inserted and the
allocation was unnecessary. At the cost of an extra hash
computation, check first if it exists, and only if it does do
we allocate and insert.
llvm-svn: 303407
Diffstat (limited to 'llvm/tools/llvm-pdbdump/llvm-pdbdump.cpp')
0 files changed, 0 insertions, 0 deletions