labath added a comment.

Overall, I think this is workable. The main thing I don't like about the 
current state is the introduction of user_id_t into the index classes. It 
forces a bunch of conversions for a flow that really should be simple.

I guess that was to avoid main-cu-ificating the DIERef class? I think (and I 
think I've already said this) the right thing to do here would be to change the 
index classes to be callback-based. Then the memory footprint is out of the 
equation (no vector<DIERef>, and the indexes can return a "main cu pair" or 
something of sorts, as that is what their callers will convert this to anyway.

I still see other issues (too much knowledge of "main cus" inside DWARFDie, 
inconsistent DWARFCompileUnit/CompileUnit usage in DWARFASTParser), but 
handling these can wait a bit...


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D73206



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

Reply via email to