Fix function naming (NFC)
authorXinliang David Li <davidxl@google.com>
Wed, 25 Nov 2015 00:08:49 +0000 (00:08 +0000)
committerXinliang David Li <davidxl@google.com>
Wed, 25 Nov 2015 00:08:49 +0000 (00:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254045 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ProfileData/InstrProf.cpp

index 1d2896c858308c4a5b1b74817f8fca5abfd01dd1..86bc436453de56e4739ceb5216176818154d3e94 100644 (file)
@@ -131,7 +131,7 @@ GlobalVariable *createPGOFuncNameVar(Function &F, StringRef FuncName) {
   return createPGOFuncNameVar(*F.getParent(), F.getLinkage(), FuncName);
 }
 
   return createPGOFuncNameVar(*F.getParent(), F.getLinkage(), FuncName);
 }
 
-uint64_t StringToHash(uint32_t ValueKind, uint64_t Value) {
+uint64_t stringToHash(uint32_t ValueKind, uint64_t Value) {
   switch (ValueKind) {
   case IPVK_IndirectCallTarget:
     return IndexedInstrProf::ComputeHash(IndexedInstrProf::HashType,
   switch (ValueKind) {
   case IPVK_IndirectCallTarget:
     return IndexedInstrProf::ComputeHash(IndexedInstrProf::HashType,
@@ -164,7 +164,7 @@ void ValueProfRecord::serializeFrom(const InstrProfRecord &Record,
   for (uint32_t S = 0; S < NumValueSites; S++) {
     uint32_t ND = Record.getNumValueDataForSite(ValueKind, S);
     SiteCountArray[S] = ND;
   for (uint32_t S = 0; S < NumValueSites; S++) {
     uint32_t ND = Record.getNumValueDataForSite(ValueKind, S);
     SiteCountArray[S] = ND;
-    Record.getValueForSite(DstVD, ValueKind, S, StringToHash);
+    Record.getValueForSite(DstVD, ValueKind, S, stringToHash);
     DstVD += ND;
   }
 }
     DstVD += ND;
   }
 }