OSDN Git Service

Function names should start with lowercase letters.
authorRui Ueyama <ruiu@google.com>
Wed, 8 Jun 2016 23:15:09 +0000 (23:15 +0000)
committerRui Ueyama <ruiu@google.com>
Wed, 8 Jun 2016 23:15:09 +0000 (23:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272225 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/DebugInfo/PDB/Raw/Hash.h
lib/DebugInfo/PDB/Raw/Hash.cpp
lib/DebugInfo/PDB/Raw/NameHashTable.cpp

index 3b2056e..a4b5d17 100644 (file)
@@ -14,8 +14,8 @@
 
 namespace llvm {
 namespace pdb {
-uint32_t HashStringV1(StringRef Str);
-uint32_t HashStringV2(StringRef Str);
+uint32_t hashStringV1(StringRef Str);
+uint32_t hashStringV2(StringRef Str);
 }
 }
 
index 8d327b3..06cbd94 100644 (file)
@@ -17,7 +17,7 @@ using namespace llvm::support;
 
 // Corresponds to `Hasher::lhashPbCb` in PDB/include/misc.h.
 // Used for name hash table and TPI/IPI hashes.
-uint32_t pdb::HashStringV1(StringRef Str) {
+uint32_t pdb::hashStringV1(StringRef Str) {
   uint32_t Result = 0;
   uint32_t Size = Str.size();
 
@@ -53,7 +53,7 @@ uint32_t pdb::HashStringV1(StringRef Str) {
 
 // Corresponds to `HasherV2::HashULONG` in PDB/include/misc.h.
 // Used for name hash table.
-uint32_t pdb::HashStringV2(StringRef Str) {
+uint32_t pdb::hashStringV2(StringRef Str) {
   uint32_t Hash = 0xb170a1bf;
 
   ArrayRef<char> Buffer(Str.begin(), Str.end());
index b182b70..ae4ebf2 100644 (file)
@@ -80,7 +80,7 @@ StringRef NameHashTable::getStringForID(uint32_t ID) const {
 }
 
 uint32_t NameHashTable::getIDForString(StringRef Str) const {
-  uint32_t Hash = (HashVersion == 1) ? HashStringV1(Str) : HashStringV2(Str);
+  uint32_t Hash = (HashVersion == 1) ? hashStringV1(Str) : hashStringV2(Str);
   size_t Count = IDs.size();
   uint32_t Start = Hash % Count;
   for (size_t I = 0; I < Count; ++I) {