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:
Benjamin Kramer 2014-04-18 19:01:53 +00:00
parent e7b068f9f1
commit 842c27189a

View File

@ -229,11 +229,11 @@ bool DWARFDebugInfoEntryMinimal::getLowAndHighPC(const DWARFUnit *U,
DWARFAddressRangesVector DWARFAddressRangesVector
DWARFDebugInfoEntryMinimal::getAddressRanges(const DWARFUnit *U) const { DWARFDebugInfoEntryMinimal::getAddressRanges(const DWARFUnit *U) const {
if (isNULL()) if (isNULL())
return DWARFAddressRangesVector{}; return DWARFAddressRangesVector();
// Single range specified by low/high PC. // Single range specified by low/high PC.
uint64_t LowPC, HighPC; uint64_t LowPC, HighPC;
if (getLowAndHighPC(U, 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. // Multiple ranges from .debug_ranges section.
uint32_t RangesOffset = uint32_t RangesOffset =
@ -243,7 +243,7 @@ DWARFDebugInfoEntryMinimal::getAddressRanges(const DWARFUnit *U) const {
if (U->extractRangeList(RangesOffset, RangeList)) if (U->extractRangeList(RangesOffset, RangeList))
return RangeList.getAbsoluteRanges(U->getBaseAddress()); return RangeList.getAbsoluteRanges(U->getBaseAddress());
} }
return DWARFAddressRangesVector{}; return DWARFAddressRangesVector();
} }
void DWARFDebugInfoEntryMinimal::collectChildrenAddressRanges( void DWARFDebugInfoEntryMinimal::collectChildrenAddressRanges(