llvm-project/llvm/unittests/ProfileData
Mircea Trofin 556f8f6adc [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

llvm-svn: 328163
2018-03-21 22:27:31 +00:00
..
CMakeLists.txt [CMake] Use PRIVATE in target_link_libraries for executables 2017-12-05 21:49:56 +00:00
CoverageMappingTest.cpp [Coverage] Scan ahead for the most-recent completed count (PR35495) 2017-12-07 00:01:15 +00:00
InstrProfTest.cpp [InstrProf] Encapsulates access to AddrToMD5Map. 2018-03-21 22:27:31 +00:00
SampleProfTest.cpp [SampleFDO] Extend SampleProfReader to handle demangled names. 2018-03-07 16:45:33 +00:00