[Lldb-commits] [lldb] r357678 - Add dropped ManualDWARFIndex assert()

Jan Kratochvil via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 4 02:24:02 PDT 2019


Author: jankratochvil
Date: Thu Apr  4 02:24:02 2019
New Revision: 357678

URL: http://llvm.org/viewvc/llvm-project?rev=357678&view=rev
Log:
Add dropped ManualDWARFIndex assert()

D47253 dropped this assertion.

Differential Revision: https://reviews.llvm.org/D60254

Modified:
    lldb/trunk/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp

Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp?rev=357678&r1=357677&r2=357678&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp Thu Apr  4 02:24:02 2019
@@ -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) {




More information about the lldb-commits mailing list