summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2015-11-25 00:08:49 +0000
committerXinliang David Li <davidxl@google.com>2015-11-25 00:08:49 +0000
commit4945b16708808e057b749bea1a7856a0e38363fe (patch)
tree508461308f439b05d9d4f6220cddc7e4a4d598da /llvm
parente412b71f951dfb0da8a96a4b8332f68548e7cf86 (diff)
downloadbcm5719-llvm-4945b16708808e057b749bea1a7856a0e38363fe.tar.gz
bcm5719-llvm-4945b16708808e057b749bea1a7856a0e38363fe.zip
Fix function naming (NFC)
llvm-svn: 254045
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/ProfileData/InstrProf.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ProfileData/InstrProf.cpp b/llvm/lib/ProfileData/InstrProf.cpp
index 1d2896c8583..86bc436453d 100644
--- a/llvm/lib/ProfileData/InstrProf.cpp
+++ b/llvm/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;
}
}
OpenPOWER on IntegriCloud