[PATCH] D132057: [DWARF][BOLT] Handle getBinaryFunctionContainingAddress returning nullptr for DW_TAG_call_site

Alexander Yermolovich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 17 11:35:55 PDT 2022


ayermolo created this revision.
Herald added subscribers: hoy, modimo, wenlei.
Herald added a reviewer: rafauler.
Herald added a reviewer: Amir.
Herald added a reviewer: maksfb.
Herald added a project: All.
ayermolo requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: llvm-commits, yota9, sstefan1.
Herald added a project: LLVM.

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.

Test Plan:


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D132057

Files:
  bolt/lib/Rewrite/DWARFRewriter.cpp
  bolt/test/X86/Inputs/dwarf5-call-pc-function-null-check-helper.s
  bolt/test/X86/Inputs/dwarf5-call-pc-function-null-check-main.s
  bolt/test/X86/dwarf5-call-pc-function-null-check.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132057.453376.patch
Type: text/x-patch
Size: 31050 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220817/75d20690/attachment.bin>


More information about the llvm-commits mailing list