labath added a comment.

I am strongly opposed to ArchSpec owing an Architecture object. The latter is 
far more complicated -- it reads bytes from target memory and disassembles them 
-- whereas ArchSpec just returns a bunch of constants. If anything, it should 
be the other way around. That way the code which just fiddles with triples does 
not need to depend on the whole world.

Having an Architecture instance in the Module object (to ensure it's 
independent of the target) seems /ok/, though I am not really convinced that it 
is needed, as the &~1 logic seems like a good candidate for ArchSpec (which 
already knows a lot about arm vs. thumb etc.


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

https://reviews.llvm.org/D70840



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

Reply via email to