summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2019-04-04 09:24:02 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2019-04-04 09:24:02 +0000
commitd0157b3b077d6d0f0f2b3b4738fd860b0223ceed (patch)
treee987c3e1126889a6425ea34c12a07aef170346ce
parent772e4734d9d6733b60adfbe1e62ac7f1ab2db849 (diff)
downloadbcm5719-llvm-d0157b3b077d6d0f0f2b3b4738fd860b0223ceed.tar.gz
bcm5719-llvm-d0157b3b077d6d0f0f2b3b4738fd860b0223ceed.zip
Add dropped ManualDWARFIndex assert()
D47253 dropped this assertion. Differential Revision: https://reviews.llvm.org/D60254 llvm-svn: 357678
-rw-r--r--lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp b/lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp
index b00874a62f3..21242d1fe05 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp
@@ -92,6 +92,9 @@ void ManualDWARFIndex::Index() {
}
void ManualDWARFIndex::IndexUnit(DWARFUnit &unit, IndexSet &set) {
+ assert(!unit.GetSymbolFileDWARF()->GetBaseCompileUnit() &&
+ "DWARFUnit associated with .dwo or .dwp should not be indexed directly");
+
Log *log = LogChannelDWARF::GetLogIfAll(DWARF_LOG_LOOKUPS);
if (log) {
OpenPOWER on IntegriCloud