[llvm] r206632 - DebugInfo: Remove some initializer lists to make MSVC happy again.

Alexey Samsonov samsonov at google.com
Tue Apr 22 15:11:53 PDT 2014


Thanks!


On Fri, Apr 18, 2014 at 12:01 PM, Benjamin Kramer
<benny.kra at googlemail.com>wrote:

> Author: d0k
> Date: Fri Apr 18 14:01:53 2014
> New Revision: 206632
>
> URL: http://llvm.org/viewvc/llvm-project?rev=206632&view=rev
> Log:
> DebugInfo: Remove some initializer lists to make MSVC happy again.
>
> Modified:
>     llvm/trunk/lib/DebugInfo/DWARFDebugInfoEntry.cpp
>
> Modified: llvm/trunk/lib/DebugInfo/DWARFDebugInfoEntry.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/DWARFDebugInfoEntry.cpp?rev=206632&r1=206631&r2=206632&view=diff
>
> ==============================================================================
> --- llvm/trunk/lib/DebugInfo/DWARFDebugInfoEntry.cpp (original)
> +++ llvm/trunk/lib/DebugInfo/DWARFDebugInfoEntry.cpp Fri Apr 18 14:01:53
> 2014
> @@ -229,11 +229,11 @@ bool DWARFDebugInfoEntryMinimal::getLowA
>  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::getAddressRa
>      if (U->extractRangeList(RangesOffset, RangeList))
>        return RangeList.getAbsoluteRanges(U->getBaseAddress());
>    }
> -  return DWARFAddressRangesVector{};
> +  return DWARFAddressRangesVector();
>  }
>
>  void DWARFDebugInfoEntryMinimal::collectChildrenAddressRanges(
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>



-- 
Alexey Samsonov, Mountain View, CA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140422/de2922ed/attachment.html>


More information about the llvm-commits mailing list