summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/source-manager/TestSourceManager.py
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2018-02-26 15:16:42 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2018-02-26 15:16:42 +0000
commit560ce2c70fb1fe8e4b9b5e39c54e494a50373ba8 (patch)
treef4c9a53e953fd6eeac118ba018f7abfee808880a /lldb/packages/Python/lldbsuite/test/source-manager/TestSourceManager.py
parent0c97f4eba47521472920c1ae9900a0b2144f97c2 (diff)
downloadbcm5719-llvm-560ce2c70fb1fe8e4b9b5e39c54e494a50373ba8.tar.gz
bcm5719-llvm-560ce2c70fb1fe8e4b9b5e39c54e494a50373ba8.zip
Re-land: "[Support] Replace HashString with djbHash."
This patch removes the HashString function from StringExtraces and replaces its uses with calls to djbHash from DJB.h. This change is *almost* NFC. While the algorithm is identical, the djbHash implementation in StringExtras used 0 as its default seed while the implementation in DJB uses 5381. The latter has been shown to result in less collisions and improved avalanching and is used by the DWARF accelerator tables. Because some test were implicitly relying on the hash order, I've reverted to using zero as a seed for the following two files: lld/include/lld/Core/SymbolTable.h llvm/lib/Support/StringMap.cpp Differential revision: https://reviews.llvm.org/D43615 llvm-svn: 326091
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/source-manager/TestSourceManager.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud