mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-21 03:05:26 -04:00
[InstrProf] Encapsulates access to AddrToMD5Map.
Summary: This fixes a unittest failure introduced by D44717 D44717 introduced lazy sorting of the internal data structures of the symbol table. The AddrToMD5Map getter was potentially exposing inconsistent (unsorted) state. We could sort in the accessor, however, a client may store the pointer and thus bypass the internal state management of the symbol table. The alternative in this CL blocks direct access to the state, thus ensuring consistent externally-observable state. Reviewers: davidxl, xur, eraman Reviewed By: xur Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D44757 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@328163 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -438,7 +438,7 @@ Error RawInstrProfReader<IntPtrT>::readValueProfilingData(
|
||||
// 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());
|
||||
VDataPtrOrErr.get()->deserializeTo(Record, Symtab.get());
|
||||
CurValueDataSize = VDataPtrOrErr.get()->getSize();
|
||||
return success();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user