Drop an unnecessary use of writev.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 16 Dec 2015 22:59:06 +0000 (22:59 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 16 Dec 2015 22:59:06 +0000 (22:59 +0000)
commitbb7c983c5abf9cb8d8b827b24cd82e40c227e36b
tree9af4e5ce17bc4c1fb47f4a75b7d37d38e774f01e
parent7a36028a83819aa49568d5d852a0f8fdae62aafb
Drop an unnecessary use of writev.

It looks like the code this patch deletes is based on a misunderstanding of
what guarantees writev provides. In particular, writev with 1 iovec is
not "more atomic" than a write.

Testing on OS X shows that both write and writev from multiple processes
can be intermixed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255837 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/raw_ostream.h
lib/Support/raw_ostream.cpp