labath added inline comments.
================
Comment at: lldb/include/lldb/Symbol/TypeSystem.h:108-110
+ virtual DWARFASTParser *GetDWARFParser(SymbolFileDWARF &dwarf) {
+ return nullptr;
+ }
----------------
This part looks pretty dodgy. I'd like to avoid introducing plugin references
in non-plugin code. It looks like this class isn't particularly clean already
(DWARFDIE forward decl), but this seems to make the problem much worse.
Since this class already contains a `SymbolFile` pointer, maybe we could create
some kind of a ast-parser constructing method on the SymbolFile class to avoid
mentioning the SymbolFileDWARF directly.
If I was doing this, I'd probably try to take this one step further and merge
the `GetDWARFParser`/`GetPDBParser` methods (whose only calls are in the
relevant symbol file plugins) into a single `GetASTParser` method and do
appropriate casts in the plugins themselves.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70647/new/
https://reviews.llvm.org/D70647
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits