From: Xinliang David Li Date: Wed, 25 Nov 2015 00:08:49 +0000 (+0000) Subject: Fix function naming (NFC) X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=5c7d512e130eff9aaaed7e490ba4dc9d7152d882 Fix function naming (NFC) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254045 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/ProfileData/InstrProf.cpp b/lib/ProfileData/InstrProf.cpp index 1d2896c8583..86bc436453d 100644 --- a/lib/ProfileData/InstrProf.cpp +++ b/lib/ProfileData/InstrProf.cpp @@ -131,7 +131,7 @@ GlobalVariable *createPGOFuncNameVar(Function &F, StringRef 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, @@ -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; - Record.getValueForSite(DstVD, ValueKind, S, StringToHash); + Record.getValueForSite(DstVD, ValueKind, S, stringToHash); DstVD += ND; } }