diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-04-14 19:17:16 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-04-14 19:17:16 +0000 |
commit | c9157d35d9e4a82c92ed7942e8be58b67cb8da2b (patch) | |
tree | 468eda33cf30457fbaedcdfa4ea43bfbedf18ba8 /llvm/lib/Bitcode/Reader/BitReader.cpp | |
parent | 000c5af3e65bcd32305d51a32ccdbe6fdf7d3fdf (diff) | |
download | llvm-c9157d35d9e4a82c92ed7942e8be58b67cb8da2b.zip llvm-c9157d35d9e4a82c92ed7942e8be58b67cb8da2b.tar.gz llvm-c9157d35d9e4a82c92ed7942e8be58b67cb8da2b.tar.bz2 |
Hash symbol names only once per global SymbolBody.
The DenseMap doesn't store hash results. This means that when it is
resized it has to recompute them.
This patch is a small hack that wraps the StringRef in a struct that
remembers the hash value. That way we can be sure it is only hashed
once.
llvm-svn: 266357
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitReader.cpp')
0 files changed, 0 insertions, 0 deletions