================
@@ -8511,8 +8512,16 @@ TypeSystemClang::dump(lldb::opaque_compiler_type_t type) 
const {
 }
 #endif
 
-void TypeSystemClang::Dump(llvm::raw_ostream &output) {
-  GetTranslationUnitDecl()->dump(output);
+void TypeSystemClang::Dump(llvm::raw_ostream &output,
+                           llvm::StringRef filter_string) {
+  auto consumer =
+      clang::CreateASTDumper(output /*Dump to stdout.*/, filter_string,
+                             /*DumpDecls=*/true,
+                             /*Deserialize=*/false,
+                             /*DumpLookups=*/false,
+                             /*DumpDeclTypes=*/false, clang::ADOF_Default);
+  lldbassert(consumer);
+  consumer->HandleTranslationUnit(*m_ast_up);
----------------
Michael137 wrote:

should probably assert on m_ast_up too

https://github.com/llvm/llvm-project/pull/142164
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to