[PATCH] D78736: [DWARF5]: Added support for dumping strx forms in llvm-dwarfdump

Igor Kudrin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 28 04:47:22 PDT 2020


ikudrin added a comment.

In D78736#2005497 <https://reviews.llvm.org/D78736#2005497>, @SouraVX wrote:

> > It starts looking that it is better to have two distinct methods in the public interface, parseMacinfo() and parseMacro(), than adding lots of the optional parameters. They can still share the implementation, though.
>
> Yes, I'm also noticing it. But this can be tricky(since we want code sharing too) these `macro` and `macinfo` is using 4 common forms. I'll be separately investigating this to cleanly refactor it so that the public interface should be more clean/intuitive. I think a private member function `parseImpl` to be called by public `parseMacinfo/Macro` would be the best fit?
>
> - This is just an abstract idea, have to dig-in more for implementation. May be 1/2 other patches ?


We can go with a private `parseImpl()` for now. It may be improved later.


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

https://reviews.llvm.org/D78736





More information about the llvm-commits mailing list