summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-06-08 23:15:09 +0000
committerRui Ueyama <ruiu@google.com>2016-06-08 23:15:09 +0000
commitf05f360debba5bb7b096f7ad8b6effc8c084609c (patch)
treeefb899c82b8df9499007182cc02194754dde5ee4 /llvm
parent8e7e76729d5f39856bd829f36a7f5a42217ac90e (diff)
downloadbcm5719-llvm-f05f360debba5bb7b096f7ad8b6effc8c084609c.tar.gz
bcm5719-llvm-f05f360debba5bb7b096f7ad8b6effc8c084609c.zip
Function names should start with lowercase letters.
llvm-svn: 272225
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/DebugInfo/PDB/Raw/Hash.h4
-rw-r--r--llvm/lib/DebugInfo/PDB/Raw/Hash.cpp4
-rw-r--r--llvm/lib/DebugInfo/PDB/Raw/NameHashTable.cpp2
3 files changed, 5 insertions, 5 deletions
diff --git a/llvm/include/llvm/DebugInfo/PDB/Raw/Hash.h b/llvm/include/llvm/DebugInfo/PDB/Raw/Hash.h
index 3b2056e57f6..a4b5d17a5f0 100644
--- a/llvm/include/llvm/DebugInfo/PDB/Raw/Hash.h
+++ b/llvm/include/llvm/DebugInfo/PDB/Raw/Hash.h
@@ -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);
}
}
diff --git a/llvm/lib/DebugInfo/PDB/Raw/Hash.cpp b/llvm/lib/DebugInfo/PDB/Raw/Hash.cpp
index 8d327b340d4..06cbd940fc2 100644
--- a/llvm/lib/DebugInfo/PDB/Raw/Hash.cpp
+++ b/llvm/lib/DebugInfo/PDB/Raw/Hash.cpp
@@ -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());
diff --git a/llvm/lib/DebugInfo/PDB/Raw/NameHashTable.cpp b/llvm/lib/DebugInfo/PDB/Raw/NameHashTable.cpp
index b182b70f006..ae4ebf27721 100644
--- a/llvm/lib/DebugInfo/PDB/Raw/NameHashTable.cpp
+++ b/llvm/lib/DebugInfo/PDB/Raw/NameHashTable.cpp
@@ -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) {
OpenPOWER on IntegriCloud