https://github.com/smithp35 commented:

I agree with jh7370 that it would be good to extract the decoding logic, it 
seems like each tool needs some way of passing in a way to step through the 
data, return the decoded data, and a way of storing errors. It is possible that 
this will end up being more code than just inlining the algorithm, however I'm 
hoping that this additional code is simpler and less error prone than copying 
the logic.

May be worth a try to see what it looks like.

https://github.com/llvm/llvm-project/pull/97382
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to