From 370bf3ef498e59dde013660379545465f2084f3f Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Mon, 26 Feb 2018 12:05:18 +0000 Subject: Revert "[Support] Replace HashString with djbHash." It looks like some of our tests depend on the ordering of hashed values. I'm reverting my changes while I try to reproduce and fix this locally. Failing builds: lab.llvm.org:8011/builders/lld-x86_64-darwin13/builds/18388 lab.llvm.org:8011/builders/clang-cmake-x86_64-sde-avx512-linux/builds/6743 lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast/builds/15607 llvm-svn: 326082 --- lld/include/lld/Core/SymbolTable.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lld/include') diff --git a/lld/include/lld/Core/SymbolTable.h b/lld/include/lld/Core/SymbolTable.h index cc2309a9068..9c39a6ed507 100644 --- a/lld/include/lld/Core/SymbolTable.h +++ b/lld/include/lld/Core/SymbolTable.h @@ -12,7 +12,7 @@ #include "lld/Common/LLVM.h" #include "llvm/ADT/DenseSet.h" -#include "llvm/Support/DJB.h" +#include "llvm/ADT/StringExtras.h" #include #include #include @@ -65,7 +65,7 @@ private: static StringRef getEmptyKey() { return StringRef(); } static StringRef getTombstoneKey() { return StringRef(" ", 1); } static unsigned getHashValue(StringRef const val) { - return llvm::djbHash(val); + return llvm::HashString(val); } static bool isEqual(StringRef const lhs, StringRef const rhs) { return lhs.equals(rhs); -- cgit v1.2.1