[Lldb-commits] [lldb] [LLDB] Ignore actual-needed artificial members in DWARFASTParserClang::ParseSingleMember (PR #70779)
Haojian Wu via lldb-commits
lldb-commits at lists.llvm.org
Thu Nov 9 06:11:03 PST 2023
================
@@ -771,6 +771,10 @@ TypeSystemClang *TypeSystemClang::GetASTContext(clang::ASTContext *ast) {
return clang_ast;
}
+bool TypeSystemClang::ShouldIgnoreArtificialField(llvm::StringRef Name) {
+ return Name.starts_with("_vptr$");
----------------
hokein wrote:
> TypeSystemClang should be agnostic to the debug-info format. The various debug-info->AST parsers (e.g., DWARFASTParserClang/PDBASTParser/npdb::PdbAstBuilder, the latter two being the MSVC debug-info parsers) use TypeSystemClang after they've parsed debug-info to construct clang AST nodes.
Thanks for the clarification.
That makes sense. I don't have any plan to use this API. It is better to move DWARFASTParserClang.cpp (better layering).
https://github.com/llvm/llvm-project/pull/70779
More information about the lldb-commits
mailing list