Add the IsText argument to GetFile and GetFileOrSTDIN which will help z/OS distinguish between text and binary correctly. This is an extension to this patch
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Personally, I'm not a fan of boolean function parameters because of the inline comments necessary to make the call site understandable. But it appears to be consistent with LLVM Coding Standards and other APIs, so this looks right to me.
Comment Actions
I think it would be a reasonable follow-up change to turn these optional boolean parameters into a flags enum.
Comment Actions
That's a good idea. There hasn't been a usage of getFile or getFileOrSTDIN that wanted CRLF translation so far, but this may not be the case always.