Use status to implement file_size.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 10 Jul 2013 17:16:40 +0000 (17:16 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 10 Jul 2013 17:16:40 +0000 (17:16 +0000)
commitac2de33d2aaa076dc54ce2cea675bcca5b50261e
treee6e772d229275c7201d1c3afa62097f0931a115a
parent43ae5e85f829df883dd364c0b9612bbe90f3ad97
Use status to implement file_size.

The status function is already using a syscall that returns the file size.
Remember it and implement file_size as a simple wrapper.

No functionally change, but clients that already use status now can avoid
calling file_size.

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