summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/lib/DebugInfo/DWARF/DWARFDebugAranges.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/llvm/lib/DebugInfo/DWARF/DWARFDebugAranges.cpp')
-rw-r--r--gnu/llvm/lib/DebugInfo/DWARF/DWARFDebugAranges.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/gnu/llvm/lib/DebugInfo/DWARF/DWARFDebugAranges.cpp b/gnu/llvm/lib/DebugInfo/DWARF/DWARFDebugAranges.cpp
index 6601393d745..a3ecb15e366 100644
--- a/gnu/llvm/lib/DebugInfo/DWARF/DWARFDebugAranges.cpp
+++ b/gnu/llvm/lib/DebugInfo/DWARF/DWARFDebugAranges.cpp
@@ -43,7 +43,8 @@ void DWARFDebugAranges::generate(DWARFContext *CTX) {
return;
// Extract aranges from .debug_aranges section.
- DataExtractor ArangesData(CTX->getARangeSection(), CTX->isLittleEndian(), 0);
+ DataExtractor ArangesData(CTX->getDWARFObj().getARangeSection(),
+ CTX->isLittleEndian(), 0);
extract(ArangesData);
// Generate aranges from DIEs: even if .debug_aranges section is present,
@@ -106,8 +107,8 @@ void DWARFDebugAranges::construct() {
assert(ValidCUs.empty());
// Endpoints are not needed now.
- std::vector<RangeEndpoint> EmptyEndpoints;
- EmptyEndpoints.swap(Endpoints);
+ Endpoints.clear();
+ Endpoints.shrink_to_fit();
}
uint32_t DWARFDebugAranges::findAddress(uint64_t Address) const {