diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-10-17 23:52:28 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-10-17 23:52:28 +0000 |
commit | f8502d50f7154c09ad3e1cf01396baee8c66cae4 (patch) | |
tree | a31e3be17927f30ebe6028793cbbf973f069ae82 /clang/lib/Lex | |
parent | bb1410ea8b1631f359608f943cfc42fe0181b19f (diff) | |
download | bcm5719-llvm-f8502d50f7154c09ad3e1cf01396baee8c66cae4.tar.gz bcm5719-llvm-f8502d50f7154c09ad3e1cf01396baee8c66cae4.zip |
Switch to llvm::HashString.
llvm-svn: 84375
Diffstat (limited to 'clang/lib/Lex')
-rw-r--r-- | clang/lib/Lex/PTHLexer.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/lib/Lex/PTHLexer.cpp b/clang/lib/Lex/PTHLexer.cpp index f804f82c489..8ca1ec016fe 100644 --- a/clang/lib/Lex/PTHLexer.cpp +++ b/clang/lib/Lex/PTHLexer.cpp @@ -20,8 +20,9 @@ #include "clang/Lex/PTHManager.h" #include "clang/Lex/Token.h" #include "clang/Lex/Preprocessor.h" -#include "llvm/ADT/StringMap.h" #include "llvm/ADT/OwningPtr.h" +#include "llvm/ADT/StringExtras.h" +#include "llvm/ADT/StringMap.h" #include "llvm/Support/MemoryBuffer.h" #include <sys/stat.h> using namespace clang; @@ -308,7 +309,7 @@ public: typedef std::pair<unsigned char, const char*> internal_key_type; static unsigned ComputeHash(internal_key_type x) { - return BernsteinHash(x.second); + return llvm::HashString(x.second); } static std::pair<unsigned, unsigned> @@ -363,7 +364,7 @@ public: } static unsigned ComputeHash(const internal_key_type& a) { - return BernsteinHash(a.first, a.second); + return llvm::HashString(llvm::StringRef(a.first, a.second)); } // This hopefully will just get inlined and removed by the optimizer. |