[Lldb-commits] [PATCH] D70646: Move non-DWARF code: `DWARFUnit` -> `SymbolFileDWARF`
Pavel Labath via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Jan 31 00:55:18 PST 2020
labath accepted this revision.
labath added a comment.
This revision is now accepted and ready to land.
Looks great, modulo the inline comment.
================
Comment at: lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp:3987-4008
+ DWARFASTParser *dwarf_ast = GetDWARFParser(*die.GetCU());
+ if (dwarf_ast)
+ return dwarf_ast->GetDeclForUIDFromDWARF(die);
+ else
+ return CompilerDecl();
+}
+
----------------
[[ http://llvm.org/docs/CodingStandards.html#don-t-use-else-after-a-return | Don't use else after return ]]. In fact, you might as well fold the GetDWARFParser call into the if condition (`if (DWARFASTParser *parser = ...) parser->...`)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70646/new/
https://reviews.llvm.org/D70646
More information about the lldb-commits
mailing list