Add comments.
llvm-svn: 271967
diff --git a/llvm/lib/DebugInfo/PDB/Raw/NameHashTable.cpp b/llvm/lib/DebugInfo/PDB/Raw/NameHashTable.cpp
index 2d5fd41..8c9d4cc 100644
--- a/llvm/lib/DebugInfo/PDB/Raw/NameHashTable.cpp
+++ b/llvm/lib/DebugInfo/PDB/Raw/NameHashTable.cpp
@@ -18,6 +18,7 @@
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 @@
return Result ^ (Result >> 16);
}
+// Corresponds to `HasherV2::HashULONG` in PDB/include/misc.h.
static inline uint32_t HashStringV2(StringRef Str) {
uint32_t Hash = 0xb170a1bf;