Replace separate read and write NativeFile instances with a single
instance shared for reading and writing. There is no clear indication
why two instances were used in the first place, and replacing them
with just one does not seem to cause any regressions in tests or manual
'process connect file://...'.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
At one point these didn't use to be shared pointers so we couldn't copy them like this, though I am still unclear as to why we need two of them in the first place.
Comment Actions
Actually, I've asked you on IRC yesterday if you think I should replace them with one field, or if we should keep the separate semantics for some possible use in the future.
Comment Actions
Yeah, and I don't really know the answer to that.
But if you make a patch to merge the two, I'll probably approve it. :)