This is an archive of the discontinued LLVM Phabricator instance.

Move DebugRanges() function from SymbolFileDWARF to DWARFContext
AcceptedPublic

Authored by zturner on Mar 21 2019, 9:38 AM.

Details

Summary

This should be the last non-dwo dependent piece to get over to DWARFContext. After this there will need to be some careful refactoring to get all knowledge of DWO-ness into the DWARFContext, ultimately culminating in probably deleting SymbolFileDWARFDwo and friends. That's for later though, just trying to give a preview into where this is going.

Eventually the goal is that SymbolFileDWARF depends on the low level parser, but not the other way around, at which point we can start the real process of merging with LLVM's.

Diff Detail

Event Timeline

zturner created this revision.Mar 21 2019, 9:38 AM
clayborg accepted this revision.Mar 21 2019, 3:46 PM

Be nice to move DWARFContext out of the lldb_private namespace at some point, but I didn't catch this on other patches so this won't hold up this patch.

lldb/source/Plugins/SymbolFile/DWARF/DWARFBaseDIE.h
23–26

Why are we defining DWARFContext in the lldb_private namespace? I missed prior patches doing this, but we should start putting plug-in code in plug-in specific namespace at some point.

This revision is now accepted and ready to land.Mar 21 2019, 3:46 PM
JDevlieghere accepted this revision.Mar 25 2019, 10:07 AM
labath resigned from this revision.Aug 9 2019, 1:58 AM