diff options
author | Rui Ueyama <ruiu@google.com> | 2016-06-07 00:59:04 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2016-06-07 00:59:04 +0000 |
commit | 4a1ebae537e8a2c26e88bd2531ccd5cbc85c2892 (patch) | |
tree | 9c476710a71cf8947e9236cbb0184de416ccadcd /llvm/lib/DebugInfo/PDB | |
parent | 8a0a1d73859a7864cf96b726f1f8b89481d40186 (diff) | |
download | bcm5719-llvm-4a1ebae537e8a2c26e88bd2531ccd5cbc85c2892.tar.gz bcm5719-llvm-4a1ebae537e8a2c26e88bd2531ccd5cbc85c2892.zip |
Add comments.
llvm-svn: 271967
Diffstat (limited to 'llvm/lib/DebugInfo/PDB')
-rw-r--r-- | llvm/lib/DebugInfo/PDB/Raw/NameHashTable.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Raw/NameHashTable.cpp b/llvm/lib/DebugInfo/PDB/Raw/NameHashTable.cpp index 2d5fd41c345..8c9d4cc8253 100644 --- a/llvm/lib/DebugInfo/PDB/Raw/NameHashTable.cpp +++ b/llvm/lib/DebugInfo/PDB/Raw/NameHashTable.cpp @@ -18,6 +18,7 @@ using namespace llvm; using namespace llvm::support; using namespace llvm::pdb; +// Corresponds to `Hasher::lhashPbCb` in PDB/include/misc.h. static inline uint32_t HashStringV1(StringRef Str) { uint32_t Result = 0; uint32_t Size = Str.size(); @@ -52,6 +53,7 @@ static inline uint32_t HashStringV1(StringRef Str) { return Result ^ (Result >> 16); } +// Corresponds to `HasherV2::HashULONG` in PDB/include/misc.h. static inline uint32_t HashStringV2(StringRef Str) { uint32_t Hash = 0xb170a1bf; |