OSDN Git Service

[lldb/DWARF] Add a utility function for (forceful) completion of types
authorPavel Labath <pavel@labath.sk>
Mon, 6 Jul 2020 09:04:58 +0000 (11:04 +0200)
committerPavel Labath <pavel@labath.sk>
Tue, 7 Jul 2020 09:37:55 +0000 (11:37 +0200)
commit2cdf108d329bda280948ad634aa0a070337a5f88
tree5ad920a0ff21ba9c70891641d7d3c2f86a4dadc4
parentd5cbf7ba32527dba53fa673ff7fd7f7fbb0b82fc
[lldb/DWARF] Add a utility function for (forceful) completion of types

Summary:
Unify the code for requiring a complete type and move it into a single
place. The only functional change is that the "cannot start a definition
of an incomplete type" is upgrated from a runtime error/warning to an
lldbassert. An plain assert might also be fine, since (AFAICT) this can
only happen in case of a programmer error.

Reviewers: teemperor, aprantl, shafik

Subscribers: lldb-commits

Tags: #lldb

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