Michael137 added inline comments.
================
Comment at: lldb/source/Target/Target.cpp:1686
+ const bool should_flush_type_systems =
+ module_list.AllOf([](const lldb::ModuleSP &module_sp) {
+ if (!module_sp)
----------------
Michael137 wrote:
> kastiglione wrote:
> > How come this is `AllOf` and not a `AnyOf`?
> Here I'm checking whether all unloaded modules are regular executables or
> object files. Otherwise we wouldn't want to clear the TypeSystems. E.g., for
> JITted modules this would not be desirable. I'll add a comment about this
Though perhaps `AnyOf` would be the safer thing to do. Not sure when we'd have
a mixture of object-files in here. But I suppose if we unloaded any that
could've been a source AST then we're in unsafe territory.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138724/new/
https://reviews.llvm.org/D138724
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits