This is an archive of the discontinued LLVM Phabricator instance.

Rename openFileForRead/Write to openFileDescriptorForRead/Write
AcceptedPublic

Authored by zturner on Jun 4 2018, 1:05 PM.

Details

Reviewers
rnk
espindola
Summary
The motivation here is that the file_t based functions should
be preferred whenever possible and that should be "the one true
way" going forward to do file I/O.  That isn't quite possible
yet, so descriptor versions are still provided.  Subsequent
patches will try to convert the descriptor versions of the
functions over to the file_t based versions, improving Support
along the way as needed.  Eventually the ultimate goal is to
be able to remove the descriptor based functions.

Diff Detail

Event Timeline

zturner created this revision.Jun 4 2018, 1:05 PM
rnk accepted this revision.Jun 4 2018, 1:29 PM

lgtm

llvm/unittests/Support/raw_pwrite_stream_test.cpp
86–87

Oh dear, I'd forgotten about these old non Expected APIs. =(

This revision is now accepted and ready to land.Jun 4 2018, 1:29 PM