aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp
diff options
context:
space:
mode:
authorJorge Gorbe Moya <jgorbe@google.com>2022-05-23 11:29:10 -0700
committerJorge Gorbe Moya <jgorbe@google.com>2022-05-23 11:31:53 -0700
commitf0a61c2ce2afec200967c59d45181c7a9fbe2c3f (patch)
treeb103e4a1d784792f9da64c2ec0066b1cac030cf0 /llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp
parentbedd3ee88152584b1c32c276b0ff38bb891f2812 (diff)
downloadllvm-f0a61c2ce2afec200967c59d45181c7a9fbe2c3f.zip
llvm-f0a61c2ce2afec200967c59d45181c7a9fbe2c3f.tar.gz
llvm-f0a61c2ce2afec200967c59d45181c7a9fbe2c3f.tar.bz2
Remove `friend` classes from TypeCategoryMap
As far as I can tell, the only thing those friend classes access is the `ValueSP` typedef. Given that this is a map-ish class, with "Map" in its name, it doesn't seem like a stretch to make `KeyType`, `ValueType` and `ValueSP` public. More so when the public methods of the class have `KeyType` and `ValueSP` arguments and clearly `ValueSP` needs to be accessed from the outside. `friend` complicates local reasoning about who can access private members, which is valuable in a class like this that has every method locking a mutex to prevent concurrent access. Differential Revision: https://reviews.llvm.org/D126103
Diffstat (limited to 'llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions