This is an archive of the discontinued LLVM Phabricator instance.

[DWARF][BOLT] Handle getBinaryFunctionContainingAddress returning nullptr for DW_TAG_call_site
ClosedPublic

Authored by ayermolo on Aug 17 2022, 11:35 AM.

Details

Summary

DW_TAG_call_site/DW_AT_call_return_pc can contain address that is not in any
function. In this case getBinaryFunctionContainingAddress returns nullptr. For
this case preserving original address.

Diff Detail

Event Timeline

ayermolo created this revision.Aug 17 2022, 11:35 AM
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
Herald added subscribers: hoy, modimo, wenlei. · View Herald Transcript
ayermolo requested review of this revision.Aug 17 2022, 11:35 AM
Herald added a project: Restricted Project. · View Herald Transcript
This revision is now accepted and ready to land.Aug 17 2022, 3:44 PM
ayermolo edited the summary of this revision. (Show Details)Aug 17 2022, 3:47 PM
ayermolo updated this revision to Diff 453457.Aug 17 2022, 3:56 PM

Edited input file to indicate it was manually modified.