[DebugInfo] Remove redundant DebugLocEntry::MergeValues() function, NFC
authorDavid Stenberg <david.stenberg@ericsson.com>
Tue, 9 Apr 2019 07:46:09 +0000 (07:46 +0000)
committerDavid Stenberg <david.stenberg@ericsson.com>
Tue, 9 Apr 2019 07:46:09 +0000 (07:46 +0000)
commit93b497a61d205088ad14e3ec7e7abc91e33592fe
tree811c3607bc33d53d6589bbfbd445e3ace5d0967f
parente043dadcad2e84a8fecb57efbbbd3f55b1b3a422
[DebugInfo] Remove redundant DebugLocEntry::MergeValues() function, NFC

Summary:
The MergeValues() function would try to merge two entries if they shared
the same beginning label. Having the same beginning label means that the
former entry's range would be empty; however, after D55919 we no longer
create entries for empty ranges, so we can no longer land in a situation
where that check in MergeValues would succeed. Instead, the "merging" is
done by keeping the live values from the preceding empty ranges in
OpenRanges, and adding them to the first non-empty range.

Reviewers: aprantl, dblaikie, loladiro

Reviewed By: aprantl

Subscribers: llvm-commits

Tags: #debug-info, #llvm

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

llvm-svn: 357974
llvm/lib/CodeGen/AsmPrinter/DebugLocEntry.h
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp