DW_TAG_partial_unit can be then presented by DWARFPartialUnit also inherited from DWARFUnit.
All DWZ patches are also applied in: git clone -b dwz git://git.jankratochvil.net/lldb
Paths
| Differential D40466
DWZ 01/11: DWARFUnit split out of DWARFCompileUnit ClosedPublic Authored by jankratochvil on Nov 26 2017, 4:56 AM.
Details Summary DW_TAG_partial_unit can be then presented by DWARFPartialUnit also inherited from DWARFUnit. All DWZ patches are also applied in: git clone -b dwz git://git.jankratochvil.net/lldb
Diff Detail Event Timelinejankratochvil added a child revision: D40467: DWZ 03/11: Separate Offset also into FileOffset.Nov 26 2017, 5:06 AM jankratochvil retitled this revision from DWZ: DWARFCompileUnit split to DWARFCompileUnitData to DWZ 03/12: DWARFCompileUnit split to DWARFCompileUnitData.
jankratochvil added inline comments.
Comment Actions Take a look how the LLVM DWARF parser handles its units. It makes a DWARFUnit base class that the compile unit inherits from. That can then be used for type units and compile units.
This revision now requires changes to proceed.Nov 29 2017, 1:41 PM jankratochvil added inline comments.
jankratochvil added a parent revision: D42891: DWZ 01/12: refactor: DWARFCompileUnit::Producer -> DWARFProducer.Feb 4 2018, 9:17 AM Comment Actions DWARFCompileUnitData is no more, there is now DWARFUnit with virtual method Data() to reference its inherited DWARFCompileUnit. I think it will make it more mergeable with LLVM DWARFUnit. jankratochvil retitled this revision from DWZ 03/12: DWARFCompileUnit split to DWARFCompileUnitData to DWZ 02/12: DWARFUnit split out of DWARFCompileUnit.Feb 4 2018, 9:20 AM Comment Actions This patch only tries to move code without changing it in any way (except for some Data() references required for DWARFCompileUnit members access from DWARFUnit). jankratochvil retitled this revision from DWZ 02/12: DWARFUnit split out of DWARFCompileUnit to DWZ 01/11: DWARFUnit split out of DWARFCompileUnit. This revision is now accepted and ready to land.Mar 12 2018, 8:44 AM Comment Actions
Right. Closed by commit rL327809: DWARFUnit split out of DWARFCompileUnit (authored by jankratochvil). · Explain WhyMar 18 2018, 1:11 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 137961 source/Plugins/SymbolFile/DWARF/CMakeLists.txt
source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.h
source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp
source/Plugins/SymbolFile/DWARF/DWARFUnit.h
source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp
|
Just make this enum DWARFProducer and get rid of the DWARFCompileUnitDecls class.