aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Parallel.cpp
diff options
context:
space:
mode:
authorBrian Gesiak <modocache@gmail.com>2018-05-11 01:47:27 +0000
committerBrian Gesiak <modocache@gmail.com>2018-05-11 01:47:27 +0000
commit82de4e6b9337d55e66b80d1b4c82dd7c413fe8e3 (patch)
tree7c2212869b149474042c5dd9b95fd0f1646c3882 /llvm/lib/Support/Parallel.cpp
parentdf6dbf67195cf3e53b500f79deb4fdadf4e14155 (diff)
downloadllvm-82de4e6b9337d55e66b80d1b4c82dd7c413fe8e3.zip
llvm-82de4e6b9337d55e66b80d1b4c82dd7c413fe8e3.tar.gz
llvm-82de4e6b9337d55e66b80d1b4c82dd7c413fe8e3.tar.bz2
[Support] Add docs for 'openFileFor{Write,Read}'
Summary: Add documentation for the LLVM Support functions `openFileForWrite` and `openFileForRead`. The `openFileForRead` parameter `RealPath`, in particular, I think warranted some explanation. In addition, make the behavior of the functions more consistent across platforms. Prior to this patch, Windows would set or not set the result file descriptor based on the nature of the error, whereas Unix would consistently set it to `-1` if the open failed. Make Windows consistently set it to `-1` as well. Test Plan: 1. `ninja check-llvm` 2. `ninja docs-llvm-html` Reviewers: zturner, rnk, danielmartin, scanon Reviewed By: danielmartin, scanon Subscribers: scanon, danielmartin, llvm-commits Differential Revision: https://reviews.llvm.org/D46499 llvm-svn: 332075
Diffstat (limited to 'llvm/lib/Support/Parallel.cpp')
0 files changed, 0 insertions, 0 deletions