OSDN Git Service

Support outputting to /dev/null.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 9 Jan 2017 21:52:35 +0000 (21:52 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 9 Jan 2017 21:52:35 +0000 (21:52 +0000)
commitcf230cb30a1cf5e1d99aa1e0d0298e702b501c3e
tree0f4c06b7769edf3466428230ba703fb9f5f7db6e
parent33887e39056499591e29eb62e7908b990ef1ca45
Support outputting to /dev/null.

When writing to a non regular file we cannot rename to it. Since we
have to write, we may as well create a temporary file to avoid trying
to create an unique file in /dev when trying to write to /dev/null.

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