From d9960c69b57e351d4e1bbdabd15f593accc8009b Mon Sep 17 00:00:00 2001 From: "Michael J. Spencer" Date: Wed, 12 Jan 2011 23:55:06 +0000 Subject: Support/Path: Deprecate PathV1::IsSymlink and replace all uses with PathV2::is_symlink. llvm-svn: 123345 --- llvm/lib/Support/PathV2.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'llvm/lib/Support') 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) && -- cgit v1.2.3