mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-27 14:24:40 +00:00
Debug info: Modify DebugLocEntry::addValue to take multiple values so it
only has to sort/unique values once per batch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215386 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1288,8 +1288,9 @@ DwarfDebug::buildLocationList(SmallVectorImpl<DebugLocEntry> &DebugLoc,
|
||||
if (!couldMerge) {
|
||||
// Need to add a new DebugLocEntry. Add all values from still
|
||||
// valid non-overlapping pieces.
|
||||
for (auto Range : OpenRanges)
|
||||
Loc.addValue(Range.second);
|
||||
if (OpenRanges.size())
|
||||
Loc.addValues(OpenRanges);
|
||||
|
||||
DebugLoc.push_back(std::move(Loc));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user