commit | 2499990699899e6da865c919fe63ef6e6c6f4a00 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Wed Aug 18 22:26:19 2010 +0000 |
committer | Dan Gohman <gohman@apple.com> | Wed Aug 18 22:26:19 2010 +0000 |
tree | 39b56f319e6178a362ba47c5559e97b7f55ad051 | |
parent | 4bb464178447ce1d58f20e0644f35b690e3215bd [diff] |
Make raw_fd_ostream consider itself the owner of STDOUT_FILENO when constructed with an output filename of "-". In particular, allow the file descriptor to be closed, and close the file descriptor in the destructor if it hasn't been explicitly closed already, to ensure that any write errors are detected. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111436 91177308-0d34-0410-b5e6-96231b3b80d8