From: Benjamin Kramer Date: Fri, 18 Apr 2014 19:01:53 +0000 (+0000) Subject: DebugInfo: Remove some initializer lists to make MSVC happy again. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=842c27189a7a6c698d10da84d483627da1da0c1d;p=oota-llvm.git 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 --- diff --git a/lib/DebugInfo/DWARFDebugInfoEntry.cpp b/lib/DebugInfo/DWARFDebugInfoEntry.cpp index 42f1481dcd1..c23c9c6ed67 100644 --- a/lib/DebugInfo/DWARFDebugInfoEntry.cpp +++ b/lib/DebugInfo/DWARFDebugInfoEntry.cpp @@ -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(