This is an archive of the discontinued LLVM Phabricator instance.

[BOLT][DWARF] Fix handling of loclists_base without location accesses
ClosedPublic

Authored by ayermolo on May 3 2023, 4:36 PM.

Details

Summary

There are CUs that have DW_AT_loclists_base, but no DW_AT_location in children
DIEs. Pre-bolt it points to a valid offset. We were not updating it, so it ended
up pointing in the middle of a list and caused LLDB to print out errors. Changed
it to point to first location list. I don't think it should matter since there
are no accesses to it anyway.

Diff Detail

Event Timeline

ayermolo created this revision.May 3 2023, 4:36 PM
Herald added a reviewer: Amir. · View Herald Transcript
Herald added a reviewer: maksfb. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
ayermolo requested review of this revision.May 3 2023, 4:36 PM
Herald added a project: Restricted Project. · View Herald Transcript
maksfb accepted this revision.May 3 2023, 7:14 PM

LGTM

bolt/test/X86/Inputs/dwarf5-loc-base-no-loc-accesshelper.s
13

nit:

This revision is now accepted and ready to land.May 3 2023, 7:14 PM