From b9c767cce502f016a5bdb07884625a3fffbe048c Mon Sep 17 00:00:00 2001 From: "Michael J. Spencer" Date: Sat, 18 Dec 2010 04:13:36 +0000 Subject: Support/PathV1: Deprecate get{Basename,Dirname,Suffix}. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122141 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/PathV1.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'include/llvm/Support/PathV1.h') diff --git a/include/llvm/Support/PathV1.h b/include/llvm/Support/PathV1.h index 818b32964e..cac6226ac8 100644 --- a/include/llvm/Support/PathV1.h +++ b/include/llvm/Support/PathV1.h @@ -272,11 +272,13 @@ namespace sys { /// this function to return "foo". /// @returns StringRef containing the basename of the path /// @brief Get the base name of the path - StringRef getBasename() const; + LLVM_ATTRIBUTE_DEPRECATED(StringRef getBasename() const, + LLVMV_PATH_DEPRECATED_MSG); /// This function strips off the suffix of the path beginning with the /// path separator ('/' on Unix, '\' on Windows) and returns the result. - StringRef getDirname() const; + LLVM_ATTRIBUTE_DEPRECATED(StringRef getDirname() const, + LLVMV_PATH_DEPRECATED_MSG); /// This function strips off the path and basename(up to and /// including the last dot) of the file or directory name and @@ -284,7 +286,8 @@ namespace sys { /// this function to return "bar". /// @returns StringRef containing the suffix of the path /// @brief Get the suffix of the path - StringRef getSuffix() const; + LLVM_ATTRIBUTE_DEPRECATED(StringRef getSuffix() const, + LLVMV_PATH_DEPRECATED_MSG); /// Obtain a 'C' string for the path name. /// @returns a 'C' string containing the path name. -- cgit v1.2.3