Reland "[lldb] Refactor variable parsing"
authorJaroslav Sevcik <jarin@google.com>
Sat, 25 Sep 2021 17:29:04 +0000 (19:29 +0200)
committerJaroslav Sevcik <jarin@google.com>
Wed, 6 Oct 2021 12:25:47 +0000 (14:25 +0200)
commitfd185cfc513c4e5e280acc6d4e7248b773285798
tree73dbfee633c912ba795b8c0024b95f42567e7945
parentdb231ebdb07f38f8b5d92311a4dc89e63c5a9d05
Reland "[lldb] Refactor variable parsing"

Separates the methods for recursive variable parsing in function
context and non-recursive parsing of global variables.

Original patch: https://reviews.llvm.org/rG601168e42037ac4433e74b920bb22f76d59ba420
Revert patch: https://reviews.llvm.org/rGca5be065c4c612554acdcae3ead01a1474eff296
Diff from the original patch: avoid using nullptr deref/ref.

Differential Revision: https://reviews.llvm.org/D110570
lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.h