summaryrefslogtreecommitdiff
path: root/include/llvm/Support/PathV1.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-12-18 07:37:18 +0000
committerOwen Anderson <resistor@mac.com>2010-12-18 07:37:18 +0000
commitfffa8635361639acadb78089c5b9b445c0aa1d30 (patch)
treec292730164461e0c80923e64b4f1c2c4f5e3c6ad /include/llvm/Support/PathV1.h
parent3132780a2ed58945b0ec5033002be44bedb6b785 (diff)
downloadllvm-fffa8635361639acadb78089c5b9b445c0aa1d30.tar.gz
llvm-fffa8635361639acadb78089c5b9b445c0aa1d30.tar.bz2
llvm-fffa8635361639acadb78089c5b9b445c0aa1d30.tar.xz
Revert r122143 through r122140, which collectively broke the LLVMC tests on
the buildbots. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122149 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/PathV1.h')
-rw-r--r--include/llvm/Support/PathV1.h21
1 files changed, 8 insertions, 13 deletions
diff --git a/include/llvm/Support/PathV1.h b/include/llvm/Support/PathV1.h
index aceb572529..818b32964e 100644
--- a/include/llvm/Support/PathV1.h
+++ b/include/llvm/Support/PathV1.h
@@ -21,10 +21,8 @@
#include <string>
#include <vector>
-#define LLVMV_PATH_DEPRECATED_MSG(replacement) \
- "PathV1 has been deprecated and will be removed as soon as all LLVM and" \
- " Clang clients have been moved over to PathV2. Please use `" #replacement \
- "` from PathV2 instead."
+#define LLVMV_PATH_DEPRECATED_MSG \
+ "PathV1 is being deprecated, please use the PathV2 API."
namespace llvm {
namespace sys {
@@ -267,20 +265,18 @@ namespace sys {
/// @brief Returns the last component of the path name.
LLVM_ATTRIBUTE_DEPRECATED(
StringRef getLast() const,
- LLVMV_PATH_DEPRECATED_MSG(path::filename));
+ LLVMV_PATH_DEPRECATED_MSG);
/// This function strips off the path and suffix of the file or directory
/// name and returns just the basename. For example /a/foo.bar would cause
/// this function to return "foo".
/// @returns StringRef containing the basename of the path
/// @brief Get the base name of the path
- LLVM_ATTRIBUTE_DEPRECATED(StringRef getBasename() const,
- LLVMV_PATH_DEPRECATED_MSG(path::stem));
+ StringRef getBasename() const;
/// This function strips off the suffix of the path beginning with the
/// path separator ('/' on Unix, '\' on Windows) and returns the result.
- LLVM_ATTRIBUTE_DEPRECATED(StringRef getDirname() const,
- LLVMV_PATH_DEPRECATED_MSG(path::parent_path));
+ StringRef getDirname() const;
/// This function strips off the path and basename(up to and
/// including the last dot) of the file or directory name and
@@ -288,8 +284,7 @@ namespace sys {
/// this function to return "bar".
/// @returns StringRef containing the suffix of the path
/// @brief Get the suffix of the path
- LLVM_ATTRIBUTE_DEPRECATED(StringRef getSuffix() const,
- LLVMV_PATH_DEPRECATED_MSG(path::extension));
+ StringRef getSuffix() const;
/// Obtain a 'C' string for the path name.
/// @returns a 'C' string containing the path name.
@@ -313,14 +308,14 @@ namespace sys {
/// @brief Determine if the path is absolute.
LLVM_ATTRIBUTE_DEPRECATED(
bool isAbsolute() const,
- LLVMV_PATH_DEPRECATED_MSG(path::is_absolute));
+ LLVMV_PATH_DEPRECATED_MSG);
/// This function determines if the path name is absolute, as opposed to
/// relative.
/// @brief Determine if the path is absolute.
LLVM_ATTRIBUTE_DEPRECATED(
static bool isAbsolute(const char *NameStart, unsigned NameLen),
- LLVMV_PATH_DEPRECATED_MSG(path::is_absolute));
+ LLVMV_PATH_DEPRECATED_MSG);
/// This function opens the file associated with the path name provided by
/// the Path object and reads its magic number. If the magic number at the