[Lldb-commits] [PATCH] D114746: [lldb] Generalize ParsedDWARFTypeAttributes
Shafik Yaghmour via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Nov 30 14:58:27 PST 2021
shafik added a comment.
I also echo Pavel's question, why not in `DWARFASTParser`?
================
Comment at: lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp:1140
: containing_decl_ctx,
- GetOwningClangModule(die), name, clang_type, attrs.storage,
- attrs.is_inline);
+ GetOwningClangModule(die), name, clang_type, attrs.is_external() ? clang::SC_Extern : clang::SC_None,
+ attrs.is_inline());
----------------
Is there a reason not to use an attribute `storage` like before? This feels like we are leaking out of the abstraction where before we were not.
================
Comment at: lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp:1493
// and the byte size is zero.
- attrs.is_forward_declaration = true;
+ attrs.attr_flags |= eDWARFAttributeIsForwardDecl;
}
----------------
if we are going to have getter abstraction why not have a `setIsForwardDeclaration()` or something similar.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D114746/new/
https://reviews.llvm.org/D114746
More information about the lldb-commits
mailing list