[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
Loading
Please register or sign in to comment