[Lldb-commits] [PATCH] D62570: [WIP] Use LLVM's debug line parser in LLDB

Greg Clayton via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed May 29 15:44:10 PDT 2019


clayborg added a comment.

overall looks good. See inlined comments.



================
Comment at: lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp:929-938
+  llvm::DWARFDebugLine line;
+  llvm::Expected<const llvm::DWARFDebugLine::LineTable *> line_table =
+      line.getOrParseLineTable(
+          data, offset, *ctx, ctx->getUnitForOffset(dwarf_cu->GetOffset()),
+          [](llvm::Error e) { llvm::consumeError(std::move(e)); });
+
+  if (!line_table) {
----------------
Can we make a function out of this that just returns the "const llvm::DWARFDebugLine::LineTable *"? Or make a new location variable that is just a "const llvm::DWARFDebugLine::LineTable *" to avoid the "(*line_table)->" stuff below?


Repository:
  rLLDB LLDB

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D62570/new/

https://reviews.llvm.org/D62570





More information about the lldb-commits mailing list