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 /lldb/packages/Python/lldbsuite/test/lang/cpp/dynamic-value/TestCppValueCast.py | |
parent | 000c5af3e65bcd32305d51a32ccdbe6fdf7d3fdf (diff) | |
download | bcm5719-llvm-c9157d35d9e4a82c92ed7942e8be58b67cb8da2b.tar.gz bcm5719-llvm-c9157d35d9e4a82c92ed7942e8be58b67cb8da2b.zip |
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 'lldb/packages/Python/lldbsuite/test/lang/cpp/dynamic-value/TestCppValueCast.py')
0 files changed, 0 insertions, 0 deletions