diff options
author | Pavel Labath <labath@google.com> | 2020-02-06 06:24:39 -0800 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2020-02-14 11:09:45 +0100 |
commit | 9dc84e9b02d1e402503906099d42fbae4da7d8d9 (patch) | |
tree | 949ab0a25872810ff2cbe6e94b4396edb3bdc32b /llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp | |
parent | a82f35e17621a036cb726244ee5cb9708545fb93 (diff) | |
download | llvm-9dc84e9b02d1e402503906099d42fbae4da7d8d9.zip llvm-9dc84e9b02d1e402503906099d42fbae4da7d8d9.tar.gz llvm-9dc84e9b02d1e402503906099d42fbae4da7d8d9.tar.bz2 |
[lldb/DWARF] Don't hold a unique SymbolFileDWARFDwo in a DWARFUnit
This is the second dwp preparatory patch. When a SymbolFileDWARFDwo will
hold more than one split unit, it will not be able to be uniquely owned
by a single DWARFUnit. I achieve this by changing the
unique_ptr<SymbolFileDWARFDwo> member of DWARFUnit to
shared_ptr<DWARFUnit>. The shared_ptr points to a DWARFUnit, but it is
in fact holding the entire SymbolFileDWARFDwo alive. This is the same
method used by llvm DWARFUnit (except that is uses the DWARFContext
class).
Differential Revision: https://reviews.llvm.org/D73782
Diffstat (limited to 'llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp')
0 files changed, 0 insertions, 0 deletions