This is an archive of the discontinued LLVM Phabricator instance.

[nfc] [lldb] Move `LookupAddress` to `DWARFCompileUnit`
ClosedPublic

Authored by jankratochvil on Oct 18 2020, 9:53 AM.

Details

Summary

LookupAddress makes no sense for DWARFTypeUnit. Also make GetNonSkeletonUnit to preserve the called type.
It is just a part of my bigger DWZ patchset needing these but I find it useful on its own.

Diff Detail

Event Timeline

jankratochvil created this revision.Oct 18 2020, 9:53 AM
jankratochvil requested review of this revision.Oct 18 2020, 9:53 AM
labath accepted this revision.Oct 19 2020, 1:45 AM

This looks fine. The dwo construction code (SymbolFileDWARFDwo::GetDWOCompileUnitForHash) already ensures that the returned object is really a compile unit.

This revision is now accepted and ready to land.Oct 19 2020, 1:45 AM
This revision was landed with ongoing or failed builds.Oct 19 2020, 3:44 AM
This revision was automatically updated to reflect the committed changes.