summaryrefslogtreecommitdiff
path: root/include/llvm
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-07-16 03:20:13 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-07-16 03:20:13 +0000
commit87be8d353b3454383940ce5abc1a176268a33d33 (patch)
tree840a6a2944fa7116a5a27670fa3f23d1565d6822 /include/llvm
parent3a101048affcb00654b85558157150ad270fc46d (diff)
downloadllvm-87be8d353b3454383940ce5abc1a176268a33d33.tar.gz
llvm-87be8d353b3454383940ce5abc1a176268a33d33.tar.bz2
llvm-87be8d353b3454383940ce5abc1a176268a33d33.tar.xz
Add a version of sys::fs::status that uses fstat.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186378 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Support/FileSystem.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Support/FileSystem.h b/include/llvm/Support/FileSystem.h
index 8b63015ef5..5ed151d648 100644
--- a/include/llvm/Support/FileSystem.h
+++ b/include/llvm/Support/FileSystem.h
@@ -529,6 +529,9 @@ error_code is_symlink(const Twine &path, bool &result);
/// platform specific error_code.
error_code status(const Twine &path, file_status &result);
+/// @brief A version for when a file descriptor is already available.
+error_code status(int FD, file_status &Result);
+
/// @brief Get file size.
///
/// @param Path Input path.