This is an archive of the discontinued LLVM Phabricator instance.

[dsymutil] Avoid relocating DW_AT_call_pc twice
ClosedPublic

Authored by vsk on May 6 2020, 6:10 PM.

Details

Summary

Avoid relocating DW_AT_call_pc, e.g. when a call PC is equal to the
function's low_pc as is the case in the test:

__Z5func1v:
0000000100007f94        b       __Z5func2v

rdar://62952440

Diff Detail

Event Timeline

vsk created this revision.May 6 2020, 6:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 6 2020, 6:10 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
friss accepted this revision.May 6 2020, 6:28 PM

Thanks for the test case!

This revision is now accepted and ready to land.May 6 2020, 6:28 PM
This revision was automatically updated to reflect the committed changes.