[llvm] r271967 - Add comments.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 6 17:59:04 PDT 2016


Author: ruiu
Date: Mon Jun  6 19:59:04 2016
New Revision: 271967

URL: http://llvm.org/viewvc/llvm-project?rev=271967&view=rev
Log:
Add comments.

Modified:
    llvm/trunk/lib/DebugInfo/PDB/Raw/NameHashTable.cpp

Modified: llvm/trunk/lib/DebugInfo/PDB/Raw/NameHashTable.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/PDB/Raw/NameHashTable.cpp?rev=271967&r1=271966&r2=271967&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/PDB/Raw/NameHashTable.cpp (original)
+++ llvm/trunk/lib/DebugInfo/PDB/Raw/NameHashTable.cpp Mon Jun  6 19:59:04 2016
@@ -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(Stri
   return Result ^ (Result >> 16);
 }
 
+// Corresponds to `HasherV2::HashULONG` in PDB/include/misc.h.
 static inline uint32_t HashStringV2(StringRef Str) {
   uint32_t Hash = 0xb170a1bf;
 




More information about the llvm-commits mailing list