Two follow-ups for #26695, both refactoring and no observed (*) behaviour change:
- Rename
gArgstoargsbecause it's not actually a global - Add
BlockAssembler::Optionsas a (private) member toBlockAssemblerto avoid having to assign all the options individually, essentially duplicating them
Reduces LoC and makes the code more readable, in my opinion.
(*) as pointed out by ajtowns, this PR changes the interface of ApplyArgsManOptions(), making this not a pure refactoring PR. In practice, ApplyArgsManOptions() is never called in such a way that this leads to observed behaviour change. Regardless, I've carved out the potential behaviour change into a separate commit and would be okay with dropping it, should it turn out to be controversial.