aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/System
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-11-07 04:36:50 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-11-07 04:36:50 +0000
commit9e07a149b079a28916cdd9d70849cd42344b54d0 (patch)
tree7205534636d5183308a21127b3ac5f82b62e56ae /include/llvm/System
parent187d8339dbc0530850e54a86edf36f1a865a5823 (diff)
downloadexternal_llvm-9e07a149b079a28916cdd9d70849cd42344b54d0.zip
external_llvm-9e07a149b079a28916cdd9d70849cd42344b54d0.tar.gz
external_llvm-9e07a149b079a28916cdd9d70849cd42344b54d0.tar.bz2
Add method for checking if a path is a symbolic link.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118367 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/System')
-rw-r--r--include/llvm/System/Path.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/System/Path.h b/include/llvm/System/Path.h
index 2049528..cfeacd2 100644
--- a/include/llvm/System/Path.h
+++ b/include/llvm/System/Path.h
@@ -373,6 +373,12 @@ namespace sys {
/// @brief Determins if the path is a directory in the file system.
bool isDirectory() const;
+ /// This function determines if the path name refences an
+ /// existing symbolic link.
+ /// @returns true if the pathname references an existing symlink.
+ /// @brief Determins if the path is a symlink in the file system.
+ bool isSymLink() const;
+
/// This function determines if the path name references a readable file
/// or directory in the file system. This function checks for
/// the existence and readability (by the current program) of the file