[DWARFLinker][NFC] Remove RangesTy &getValidAddressRanges().
authorAlexey Lapshin <a.v.lapshin@mail.ru>
Sat, 1 Jul 2023 10:20:50 +0000 (12:20 +0200)
committerAlexey Lapshin <a.v.lapshin@mail.ru>
Tue, 4 Jul 2023 11:00:10 +0000 (13:00 +0200)
commit8f5a68ab03280dd3d9099f767d8d8ccbc4ae595a
tree8365a1b8dd70dc2f3e1e119e50c9c1c332992c94
parentc68ba12abf490716fd7a57bba9c2dda1d537b19c
[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
llvm/include/llvm/DWARFLinker/DWARFLinker.h
llvm/include/llvm/DWARFLinkerParallel/AddressesMap.h
llvm/lib/DWARFLinker/DWARFLinker.cpp
llvm/tools/dsymutil/DwarfLinkerForBinary.h
llvm/tools/llvm-dwarfutil/DebugInfoLinker.cpp