summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/SymbolFile
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2018-05-25 16:11:45 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2018-05-25 16:11:45 +0000
commita185c719599e4911d61e044095eb8f9d7ab38aa3 (patch)
tree95def5b396b9f61ecd1106bbcd08282ef302c62e /lldb/source/Plugins/SymbolFile
parent8f66adecd006a36f7b16ccbb73736677be5d02f9 (diff)
downloadbcm5719-llvm-a185c719599e4911d61e044095eb8f9d7ab38aa3.tar.gz
bcm5719-llvm-a185c719599e4911d61e044095eb8f9d7ab38aa3.zip
Remove DWARFUnit::ClearDIEs parameter keep_compile_unit_die
It has been now always passed as true and during planned D46810 it would no longer make sense. llvm-svn: 333287
Diffstat (limited to 'lldb/source/Plugins/SymbolFile')
-rw-r--r--lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp9
-rw-r--r--lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.h2
-rw-r--r--lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp2
3 files changed, 6 insertions, 7 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp
index 5d839c40fd3..ef3d2cf4d55 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp
@@ -288,7 +288,7 @@ void DWARFUnit::SetAddrBase(dw_addr_t addr_base,
m_base_obj_offset = base_obj_offset;
}
-void DWARFUnit::ClearDIEs(bool keep_compile_unit_die) {
+void DWARFUnit::ClearDIEs() {
if (m_die_array.size() > 1) {
// std::vectors never get any smaller when resized to a smaller size, or
// when clear() or erase() are called, the size will report that it is
@@ -300,12 +300,11 @@ void DWARFUnit::ClearDIEs(bool keep_compile_unit_die) {
// Save at least the compile unit DIE
DWARFDebugInfoEntry::collection tmp_array;
m_die_array.swap(tmp_array);
- if (keep_compile_unit_die)
- m_die_array.push_back(tmp_array.front());
+ m_die_array.push_back(tmp_array.front());
}
if (m_dwo_symbol_file)
- m_dwo_symbol_file->GetCompileUnit()->ClearDIEs(keep_compile_unit_die);
+ m_dwo_symbol_file->GetCompileUnit()->ClearDIEs();
}
void DWARFUnit::BuildAddressRangeTable(SymbolFileDWARF *dwarf,
@@ -403,7 +402,7 @@ void DWARFUnit::BuildAddressRangeTable(SymbolFileDWARF *dwarf,
// Keep memory down by clearing DIEs if this generate function caused them to
// be parsed
if (clear_dies)
- ClearDIEs(true);
+ ClearDIEs();
}
lldb::ByteOrder DWARFUnit::GetByteOrder() const {
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.h b/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.h
index 322e4fcda05..5a8932cfa70 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.h
+++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.h
@@ -99,7 +99,7 @@ public:
dw_addr_t GetRangesBase() const { return m_ranges_base; }
void SetAddrBase(dw_addr_t addr_base, dw_addr_t ranges_base,
dw_offset_t base_obj_offset);
- void ClearDIEs(bool keep_compile_unit_die);
+ void ClearDIEs();
void BuildAddressRangeTable(SymbolFileDWARF *dwarf,
DWARFDebugAranges *debug_aranges);
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp b/lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp
index 719478537ac..b089b0ddeae 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp
@@ -96,7 +96,7 @@ void ManualDWARFIndex::Index() {
//----------------------------------------------------------------------
for (uint32_t cu_idx = 0; cu_idx < num_compile_units; ++cu_idx) {
if (clear_cu_dies[cu_idx])
- debug_info.GetCompileUnitAtIndex(cu_idx)->ClearDIEs(true);
+ debug_info.GetCompileUnitAtIndex(cu_idx)->ClearDIEs();
}
}
OpenPOWER on IntegriCloud