Remove a convoluted way of calling close by moving the call to the only caller.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 11 Dec 2014 20:12:55 +0000 (20:12 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 11 Dec 2014 20:12:55 +0000 (20:12 +0000)
commit0be06cf3609cdf6bdc8f769348f6ffcaba560eec
treeca77e966f628cca82af9bc7ecb4a9b2a3c9e2db2
parent428923cfe2583a113973dd82a840950ec2822fc9
Remove a convoluted way of calling close by moving the call to the only caller.

As a bonus we can actually check the return value.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224046 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/FileSystem.h
lib/Support/FileOutputBuffer.cpp
lib/Support/MemoryBuffer.cpp
lib/Support/Unix/Path.inc
lib/Support/Windows/Path.inc
unittests/Support/Path.cpp