This is an archive of the discontinued LLVM Phabricator instance.

[DWARF] Change pubnames to use DWARFSection instead of StringRef
ClosedPublic

Authored by MaskRay on Nov 10 2018, 1:18 AM.

Details

Summary

The debug_info_offset values in .debug_{,gnu_}pub{name,types} may be relocated. Use DWARFSection so that we can get relocated values.

Diff Detail

Repository
rL LLVM

Event Timeline

MaskRay created this revision.Nov 10 2018, 1:18 AM

Can this have a test? (I guess you should be able to use llvm-dwarfdump to show the new output).

JDevlieghere accepted this revision.Nov 10 2018, 4:25 PM

This LGTM if there's an existing test that checks the dwarf2yaml codepath.

This revision is now accepted and ready to land.Nov 10 2018, 4:25 PM

Thanks! The dwarf2yaml code path touched by this revision is tested by some test/ObjectYAML/MachO/DWARF-*.yaml files.

MaskRay updated this revision to Diff 173545.Nov 10 2018, 9:04 PM

Update test