[all-commits] [llvm/llvm-project] 8f5a68: [DWARFLinker][NFC] Remove RangesTy &getValidAddres...

avl-llvm via All-commits all-commits at lists.llvm.org
Tue Jul 4 04:06:10 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8f5a68ab03280dd3d9099f767d8d8ccbc4ae595a
      https://github.com/llvm/llvm-project/commit/8f5a68ab03280dd3d9099f767d8d8ccbc4ae595a
  Author: Alexey Lapshin <a.v.lapshin at mail.ru>
  Date:   2023-07-04 (Tue, 04 Jul 2023)

  Changed paths:
    M llvm/include/llvm/DWARFLinker/DWARFLinker.h
    M llvm/include/llvm/DWARFLinkerParallel/AddressesMap.h
    M llvm/lib/DWARFLinker/DWARFLinker.cpp
    M llvm/tools/dsymutil/DwarfLinkerForBinary.h
    M llvm/tools/llvm-dwarfutil/DebugInfoLinker.cpp

  Log Message:
  -----------
  [DWARFLinker][NFC] Remove RangesTy &getValidAddressRanges().

This patch simplifies line table generation. It removes global
array of all units ranges(RangesTy &getValidAddressRanges()).
The comment says that global array of all units ranges is necessary
to handle corner cases inside line table rows. Removing that
special handling shows that its current usage is handling of
"end of range case" which is already handled correctly
(without special handling). .debug_line tables for clang binary
built with and without this patch are equal.

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




More information about the All-commits mailing list