Jonas Devlieghere 560ce2c70f 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
2018-02-26 15:16:42 +00:00
..
2017-04-06 18:12:24 +00:00
2017-04-06 18:12:24 +00:00
2017-04-06 18:12:24 +00:00
2017-04-06 18:12:24 +00:00
2017-04-06 18:12:24 +00:00
2017-04-06 18:12:24 +00:00
2017-04-06 18:12:24 +00:00
2017-04-06 18:12:24 +00:00
2017-04-06 18:12:24 +00:00
2017-11-17 03:28:58 +00:00
2017-11-28 17:50:31 +00:00
2017-04-06 18:12:24 +00:00