llvm-project/lldb/source
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
..
API Add SBDebugger::GetBuildConfiguration and use it to skip an XML test 2018-02-19 15:06:28 +00:00
Breakpoint Fix breakpoint thread name conditionals after breakpoint options refactor. 2018-02-23 21:10:42 +00:00
Commands Delete some unused #includes of CleanUp.h, NFC 2018-02-23 00:29:40 +00:00
Core [lldb][PPC64] Fixed long double variables dump 2018-01-17 15:11:20 +00:00
DataFormatters Use exact equality for category language matching, for all languages, except those specifically mentioned. 2017-06-06 20:40:24 +00:00
Expression [IRExecutionUnit] Remove broken/dead code. 2018-01-04 23:37:18 +00:00
Host [Utility] Simplify and generalize the CleanUp helper, NFC 2018-02-23 22:08:38 +00:00
Initialization Don't use llvm::EnablePrettyStackTrace on macOS. 2017-12-02 00:11:18 +00:00
Interpreter Delete some unused #includes of CleanUp.h, NFC 2018-02-23 00:29:40 +00:00
Plugins [Utility] Simplify and generalize the CleanUp helper, NFC 2018-02-23 22:08:38 +00:00
Symbol Handle typeof() expressions 2018-02-20 10:15:08 +00:00
Target Replace HashStringUsingDJB with llvm::djbHash 2018-02-23 17:49:26 +00:00
Utility Re-land: "[Support] Replace HashString with djbHash." 2018-02-26 15:16:42 +00:00
CMakeLists.txt Remove Plugins/Process/POSIX from include_directories 2017-04-11 12:26:25 +00:00
lldb.cpp Run clang-format on lldb.cpp 2017-11-02 16:56:52 +00:00