diff options
| author | Adam Nemet <anemet@apple.com> | 2016-03-28 18:27:44 +0000 |
|---|---|---|
| committer | Adam Nemet <anemet@apple.com> | 2016-03-28 18:27:44 +0000 |
| commit | 2f36f059512fb35481e1c4731e2d406d9388a98d (patch) | |
| tree | c6d34b2c3b3e59ae202e6f7e6b72a4089d1c88b5 /llvm/lib/ProfileData | |
| parent | e9f15b4b9f5ae3104c4624637b7360856b11214f (diff) | |
| download | bcm5719-llvm-2f36f059512fb35481e1c4731e2d406d9388a98d.tar.gz bcm5719-llvm-2f36f059512fb35481e1c4731e2d406d9388a98d.zip | |
[PGO] Comment how function pointers for indirect calls are mapped to function names
Summary:
Hopefully this will make it easier for the next person to figure all
this out...
Reviewers: bogner, davidxl
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D18490
llvm-svn: 264611
Diffstat (limited to 'llvm/lib/ProfileData')
| -rw-r--r-- | llvm/lib/ProfileData/InstrProfReader.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/ProfileData/InstrProfReader.cpp b/llvm/lib/ProfileData/InstrProfReader.cpp index b00c1392eb8..27142e0533f 100644 --- a/llvm/lib/ProfileData/InstrProfReader.cpp +++ b/llvm/lib/ProfileData/InstrProfReader.cpp @@ -412,6 +412,9 @@ RawInstrProfReader<IntPtrT>::readValueProfilingData(InstrProfRecord &Record) { if (VDataPtrOrErr.getError()) return VDataPtrOrErr.getError(); + // Note that besides deserialization, this also performs the conversion for + // indirect call targets. The function pointers from the raw profile are + // remapped into function name hashes. VDataPtrOrErr.get()->deserializeTo(Record, &Symtab->getAddrHashMap()); CurValueDataSize = VDataPtrOrErr.get()->getSize(); return success(); |

