[all-commits] [llvm/llvm-project] 93ce09: [BOLT][DWARF] Fix handling of loclists_base withou...

Alexander Yermolovich via All-commits all-commits at lists.llvm.org
Wed May 3 20:53:39 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 93ce0965029b77e0de84dbe47525d6ac883d2ae2
      https://github.com/llvm/llvm-project/commit/93ce0965029b77e0de84dbe47525d6ac883d2ae2
  Author: Alexander Yermolovich <ayermolo at meta.com>
  Date:   2023-05-03 (Wed, 03 May 2023)

  Changed paths:
    M bolt/lib/Core/DebugData.cpp
    A bolt/test/X86/Inputs/dwarf5-loc-base-no-loc-accesshelper.s
    A bolt/test/X86/dwarf5-one-loclists-two-bases.test

  Log Message:
  -----------
  [BOLT][DWARF] Fix handling of loclists_base without location accesses

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.

Reviewed By: maksfb

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




More information about the All-commits mailing list