[llvm] r254045 - Fix function naming (NFC)
Xinliang David Li via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 24 16:08:49 PST 2015
Author: davidxl
Date: Tue Nov 24 18:08:49 2015
New Revision: 254045
URL: http://llvm.org/viewvc/llvm-project?rev=254045&view=rev
Log:
Fix function naming (NFC)
Modified:
llvm/trunk/lib/ProfileData/InstrProf.cpp
Modified: llvm/trunk/lib/ProfileData/InstrProf.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ProfileData/InstrProf.cpp?rev=254045&r1=254044&r2=254045&view=diff
==============================================================================
--- llvm/trunk/lib/ProfileData/InstrProf.cpp (original)
+++ llvm/trunk/lib/ProfileData/InstrProf.cpp Tue Nov 24 18:08:49 2015
@@ -131,7 +131,7 @@ GlobalVariable *createPGOFuncNameVar(Fun
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,
@@ -164,7 +164,7 @@ void ValueProfRecord::serializeFrom(cons
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;
}
}
More information about the llvm-commits
mailing list