diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2014-04-18 19:01:53 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2014-04-18 19:01:53 +0000 |
commit | ee26b621f0a2ad3fb522a857aa9ea63d49797774 (patch) | |
tree | 7ecdb04f24d8b69c373826744207c177f6803bbb /llvm/lib/DebugInfo/DWARFDebugInfoEntry.cpp | |
parent | 583a31c976c8437fd8737c461039c32f62be62f9 (diff) | |
download | bcm5719-llvm-ee26b621f0a2ad3fb522a857aa9ea63d49797774.tar.gz bcm5719-llvm-ee26b621f0a2ad3fb522a857aa9ea63d49797774.zip |
DebugInfo: Remove some initializer lists to make MSVC happy again.
llvm-svn: 206632
Diffstat (limited to 'llvm/lib/DebugInfo/DWARFDebugInfoEntry.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/DWARFDebugInfoEntry.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/DebugInfo/DWARFDebugInfoEntry.cpp b/llvm/lib/DebugInfo/DWARFDebugInfoEntry.cpp index 42f1481dcd1..c23c9c6ed67 100644 --- a/llvm/lib/DebugInfo/DWARFDebugInfoEntry.cpp +++ b/llvm/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( |