mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-06 04:31:08 +00:00
DebugInfo: Remove some initializer lists to make MSVC happy again.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206632 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e7b068f9f1
commit
842c27189a
@ -229,11 +229,11 @@ bool DWARFDebugInfoEntryMinimal::getLowAndHighPC(const DWARFUnit *U,
|
||||
DWARFAddressRangesVector
|
||||
DWARFDebugInfoEntryMinimal::getAddressRanges(const DWARFUnit *U) const {
|
||||
if (isNULL())
|
||||
return DWARFAddressRangesVector{};
|
||||
return DWARFAddressRangesVector();
|
||||
// Single range specified by low/high PC.
|
||||
uint64_t LowPC, HighPC;
|
||||
if (getLowAndHighPC(U, LowPC, HighPC)) {
|
||||
return DWARFAddressRangesVector{std::make_pair(LowPC, HighPC)};
|
||||
return DWARFAddressRangesVector(1, std::make_pair(LowPC, HighPC));
|
||||
}
|
||||
// Multiple ranges from .debug_ranges section.
|
||||
uint32_t RangesOffset =
|
||||
@ -243,7 +243,7 @@ DWARFDebugInfoEntryMinimal::getAddressRanges(const DWARFUnit *U) const {
|
||||
if (U->extractRangeList(RangesOffset, RangeList))
|
||||
return RangeList.getAbsoluteRanges(U->getBaseAddress());
|
||||
}
|
||||
return DWARFAddressRangesVector{};
|
||||
return DWARFAddressRangesVector();
|
||||
}
|
||||
|
||||
void DWARFDebugInfoEntryMinimal::collectChildrenAddressRanges(
|
||||
|
Loading…
Reference in New Issue
Block a user