This is an archive of the discontinued LLVM Phabricator instance.

[FileSystem] Delete OpenFlags parameter from several file system functions
ClosedPublic

Authored by zturner on Jun 5 2018, 11:00 AM.

Details

Summary

It defaults to specifying ReadWrite, and the only time in the entire codebase that any other value is used is when creating a temporary files, whereon Windows we additionally pass F_Delete. We can hide this particular usage in the implementation file, and all other callers continue to work exactly the same since they were just using the default value anyway.

Diff Detail

Repository
rL LLVM

Event Timeline

zturner created this revision.Jun 5 2018, 11:00 AM
rnk accepted this revision.Jun 5 2018, 11:02 AM

lgtm

This revision is now accepted and ready to land.Jun 5 2018, 11:02 AM
This revision was automatically updated to reflect the committed changes.