aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2020-02-06 06:24:39 -0800
committerPavel Labath <labath@google.com>2020-02-14 11:09:45 +0100
commit9dc84e9b02d1e402503906099d42fbae4da7d8d9 (patch)
tree949ab0a25872810ff2cbe6e94b4396edb3bdc32b /llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp
parenta82f35e17621a036cb726244ee5cb9708545fb93 (diff)
downloadllvm-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