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 | d9960c69b57e351d4e1bbdabd15f593accc8009b (patch) | |
tree | 2abec8ce75c60b77a1448783d2085845fb6ebc44 /llvm/lib/Support/PathV2.cpp | |
parent | 634f13eacbe126a341d98af526319ed3eb0503f0 (diff) | |
download | bcm5719-llvm-d9960c69b57e351d4e1bbdabd15f593accc8009b.tar.gz bcm5719-llvm-d9960c69b57e351d4e1bbdabd15f593accc8009b.zip |
Support/Path: Deprecate PathV1::IsSymlink and replace all uses with PathV2::is_symlink.
llvm-svn: 123345
Diffstat (limited to 'llvm/lib/Support/PathV2.cpp')
-rw-r--r-- | llvm/lib/Support/PathV2.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/Support/PathV2.cpp b/llvm/lib/Support/PathV2.cpp index f2ca34b4adf..e2565d55f06 100644 --- a/llvm/lib/Support/PathV2.cpp +++ b/llvm/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) && |