diff options
| author | Xinliang David Li <davidxl@google.com> | 2015-11-25 00:08:49 +0000 |
|---|---|---|
| committer | Xinliang David Li <davidxl@google.com> | 2015-11-25 00:08:49 +0000 |
| commit | 4945b16708808e057b749bea1a7856a0e38363fe (patch) | |
| tree | 508461308f439b05d9d4f6220cddc7e4a4d598da /llvm | |
| parent | e412b71f951dfb0da8a96a4b8332f68548e7cf86 (diff) | |
| download | bcm5719-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.cpp | 4 |
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; } } |

