diff options
author | Xinliang David Li <davidxl@google.com> | 2016-02-04 05:29:51 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2016-02-04 05:29:51 +0000 |
commit | 1e4c809c6c56fe41c68c60b7b3a4ac78663e5242 (patch) | |
tree | bf04254ec87dd80bb9e05b46c954139337666a48 /llvm/lib/ProfileData/InstrProf.cpp | |
parent | 4199f3df29e50353bfa55bb410210d416b93f834 (diff) | |
download | bcm5719-llvm-1e4c809c6c56fe41c68c60b7b3a4ac78663e5242.tar.gz bcm5719-llvm-1e4c809c6c56fe41c68c60b7b3a4ac78663e5242.zip |
[PGO] Profile interface cleanup
- Remove unused valuemapper parameter
- add totalcount optional parameter
llvm-svn: 259756
Diffstat (limited to 'llvm/lib/ProfileData/InstrProf.cpp')
-rw-r--r-- | llvm/lib/ProfileData/InstrProf.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/ProfileData/InstrProf.cpp b/llvm/lib/ProfileData/InstrProf.cpp index 1701ec0df97..6bf52436811 100644 --- a/llvm/lib/ProfileData/InstrProf.cpp +++ b/llvm/lib/ProfileData/InstrProf.cpp @@ -430,10 +430,9 @@ uint32_t getNumValueDataForSiteInstrProf(const void *R, uint32_t VK, } void getValueForSiteInstrProf(const void *R, InstrProfValueData *Dst, - uint32_t K, uint32_t S, - uint64_t (*Mapper)(uint32_t, uint64_t)) { - return reinterpret_cast<const InstrProfRecord *>(R)->getValueForSite( - Dst, K, S, Mapper); + uint32_t K, uint32_t S) { + reinterpret_cast<const InstrProfRecord *>(R)->getValueForSite(Dst, K, S); + return; } ValueProfData *allocValueProfDataInstrProf(size_t TotalSizeInBytes) { |