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



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to