[PATCH] D97785: [SystemZ][z/OS] Distinguish between text and binary files on z/OS

Zibi Sarbino via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 15 12:20:54 PDT 2021


zibi added inline comments.


================
Comment at: clang/lib/Frontend/CompilerInstance.cpp:771
+        TempPath, fd, TempPath,
+        llvm::sys::fs::all_read | llvm::sys::fs::all_write,
+        Binary ? llvm::sys::fs::OF_None : llvm::sys::fs::OF_Text);
----------------
The ` llvm::sys::fs::all_read | llvm::sys::fs::all_write` seems to be a default so if we make that parameter last we won't need to pass it and worry about the mode parameter which would be the second last default parameter.  Switch parameters only when you determine that indeed `tag` is more frequent parameter which need to be set comparing to `mode` parameter.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D97785



More information about the cfe-commits mailing list