[Lldb-commits] [PATCH] D72946: [lldb] Remove ClangASTImporter reference from Target
Raphael Isemann via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Jan 17 12:57:10 PST 2020
teemperor requested changes to this revision.
teemperor added a comment.
This revision now requires changes to proceed.
I wish we could do this without a global map. Also the ClangASTImporter shouldn't have a dependency on Target (I'm actually surprised this compiles without an additional include).
I'm not sure where the perfect place for the Target's ClangASTImporter is, but putting it in the `ClangPersistentVariables` would solve your problem of getting it out of Target and doesn't need a global map. Also in general the ClangASTImporter of the Target is used for copying stuff to the scratch context, so having it in the `ClangPersistentVariables` makes some sense.
================
Comment at: lldb/include/lldb/Symbol/ClangASTImporter.h:328
+
} // namespace lldb_private
----------------
unrelated change
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72946/new/
https://reviews.llvm.org/D72946
More information about the lldb-commits
mailing list