summaryrefslogtreecommitdiff
path: root/include/llvm/Support/PathV1.h
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2010-12-18 04:13:36 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2010-12-18 04:13:36 +0000
commitb9c767cce502f016a5bdb07884625a3fffbe048c (patch)
treec714af53af3bbe91fcc8f58bdfc166a4b7cfb516 /include/llvm/Support/PathV1.h
parentf705a7ed27eba0e0b33fab43c7f7ee27110ee23b (diff)
downloadllvm-b9c767cce502f016a5bdb07884625a3fffbe048c.tar.gz
llvm-b9c767cce502f016a5bdb07884625a3fffbe048c.tar.bz2
llvm-b9c767cce502f016a5bdb07884625a3fffbe048c.tar.xz
Support/PathV1: Deprecate get{Basename,Dirname,Suffix}.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122141 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/PathV1.h')
-rw-r--r--include/llvm/Support/PathV1.h9
1 files changed, 6 insertions, 3 deletions
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.