[all-commits] [llvm/llvm-project] b786e0: [DWARF][BOLT] Handle getBinaryFunctionContainingAd...

Alexander Yermolovich via All-commits all-commits at lists.llvm.org
Wed Aug 17 16:06:04 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b786e01f9340cc009a90e02033a9c84144740017
      https://github.com/llvm/llvm-project/commit/b786e01f9340cc009a90e02033a9c84144740017
  Author: Alexander Yermolovich <ayermolo at fb.com>
  Date:   2022-08-17 (Wed, 17 Aug 2022)

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

  Log Message:
  -----------
  [DWARF][BOLT] Handle getBinaryFunctionContainingAddress returning nullptr for DW_TAG_call_site

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.

Reviewed By: rafauler

Differential Revision: https://reviews.llvm.org/D132057




More information about the All-commits mailing list