summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/SymbolFile
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2019-10-08 21:34:22 +0000
committerAdrian Prantl <aprantl@apple.com>2019-10-08 21:34:22 +0000
commit35b63a435c95a75e21929966c05fdc0c4a66b6aa (patch)
tree7e920944686e19638926bc77965967bf54427e55 /lldb/source/Plugins/SymbolFile
parentfe53d2dc6b2bf0f21a1acd72e0e3d7390932ce96 (diff)
downloadbcm5719-llvm-35b63a435c95a75e21929966c05fdc0c4a66b6aa.tar.gz
bcm5719-llvm-35b63a435c95a75e21929966c05fdc0c4a66b6aa.zip
Revert Trust the arange accelerator tables in dSYMs
This reverts r374117 (git commit 6399db2f6fd64fa250093368be40eb5ae3af513b) while inspecting bot breakage. llvm-svn: 374121
Diffstat (limited to 'lldb/source/Plugins/SymbolFile')
-rw-r--r--lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.cpp20
1 files changed, 7 insertions, 13 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.cpp
index 57e6d12a5a3..1e04baca2c5 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.cpp
@@ -54,19 +54,13 @@ llvm::Expected<DWARFDebugAranges &> DWARFDebugInfo::GetCompileUnitAranges() {
// Manually build arange data for everything that wasn't in the
// .debug_aranges table.
- //
- // This step is skipped for dSYMs and other debug-info-only
- // objects, which are always trusted to have a complete table.
- auto *obj = m_dwarf.GetObjectFile();
- if (!obj || obj->GetType() != ObjectFile::eTypeDebugInfo) {
- const size_t num_units = GetNumUnits();
- for (size_t idx = 0; idx < num_units; ++idx) {
- DWARFUnit *cu = GetUnitAtIndex(idx);
-
- dw_offset_t offset = cu->GetOffset();
- if (cus_with_data.find(offset) == cus_with_data.end())
- cu->BuildAddressRangeTable(m_cu_aranges_up.get());
- }
+ const size_t num_units = GetNumUnits();
+ for (size_t idx = 0; idx < num_units; ++idx) {
+ DWARFUnit *cu = GetUnitAtIndex(idx);
+
+ dw_offset_t offset = cu->GetOffset();
+ if (cus_with_data.find(offset) == cus_with_data.end())
+ cu->BuildAddressRangeTable(m_cu_aranges_up.get());
}
const bool minimize = true;
OpenPOWER on IntegriCloud