[Lldb-commits] [PATCH] D79752: [lldb] Move ClangModulesDeclVendor ownership to ClangPersistentVariables

Shafik Yaghmour via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed May 27 14:11:15 PDT 2020


shafik added inline comments.


================
Comment at: lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp:854
 
-  ClangModulesDeclVendor *modules_decl_vendor =
-      m_target->GetClangModulesDeclVendor();
+  auto *persistent_vars = llvm::cast<ClangPersistentVariables>(
+      m_target->GetPersistentExpressionStateForLanguage(lldb::eLanguageTypeC));
----------------
Can we just write a helper method to these two steps in `ClangASTSource` and then `ClangExpressionDeclMap` will just get it as well.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79752/new/

https://reviews.llvm.org/D79752





More information about the lldb-commits mailing list