diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2011-01-12 23:55:06 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2011-01-12 23:55:06 +0000 |
commit | 9df536ca7873af6dd9d9ca4aa6cea2872de5c028 (patch) | |
tree | 98436360a7b2f7cf3bec8f59834256b6e02d5cfd /lib/Support/PathV2.cpp | |
parent | 25dc2268a5aedcb5da57f065dbdb40d790b11bc0 (diff) |
Support/Path: Deprecate PathV1::IsSymlink and replace all uses with PathV2::is_symlink.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123345 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/PathV2.cpp')
-rw-r--r-- | lib/Support/PathV2.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Support/PathV2.cpp b/lib/Support/PathV2.cpp index f2ca34b4ad..e2565d55f0 100644 --- a/lib/Support/PathV2.cpp +++ b/lib/Support/PathV2.cpp @@ -660,6 +660,14 @@ bool is_symlink(file_status status) { return status.type() == file_type::symlink_file; } +error_code is_symlink(const Twine &path, bool &result) { + file_status st; + if (error_code ec = status(path, st)) + return ec; + result = is_symlink(st); + return success; +} + bool is_other(file_status status) { return exists(status) && !is_regular_file(status) && |