[all-commits] [llvm/llvm-project] 6e2624: [BOLT][DWARF] Refactor address ranges processing (...

maksfb via All-commits all-commits at lists.llvm.org
Mon Nov 6 11:10:34 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6e26246c22c4abd8efe725a55a0908039750a773
      https://github.com/llvm/llvm-project/commit/6e26246c22c4abd8efe725a55a0908039750a773
  Author: maksfb <maks at fb.com>
  Date:   2023-11-06 (Mon, 06 Nov 2023)

  Changed paths:
    M bolt/include/bolt/Core/BinaryFunction.h
    M bolt/include/bolt/Core/DebugData.h
    M bolt/lib/Core/BinaryFunction.cpp
    M bolt/lib/Rewrite/DWARFRewriter.cpp

  Log Message:
  -----------
  [BOLT][DWARF] Refactor address ranges processing (#71225)

Create BinaryFunction::translateInputToOutputRange() and use it for
updating DWARF debug ranges and location lists while de-duplicating the
existing code. Additionally, move DWARF-specific code out of
BinaryFunction and add print functions to facilitate debugging.

Note that this change is deliberately kept "bug-level" compatible with
the existing solution to keep it NFCI and make it easier to track any
possible regressions in the future updates to the ranges-handling code.




More information about the All-commits mailing list