summaryrefslogtreecommitdiff
path: root/include/llvm/Support/PathV1.h
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2010-12-17 21:21:31 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2010-12-17 21:21:31 +0000
commit965841cfe4de695fc56cab4821fd7e032ff85b83 (patch)
tree33539f2d29383519a02f7c85eac1b442dd51c871 /include/llvm/Support/PathV1.h
parent3ce88c92905c173e39e9ae29c53d0755504a76f6 (diff)
downloadllvm-965841cfe4de695fc56cab4821fd7e032ff85b83.tar.gz
llvm-965841cfe4de695fc56cab4821fd7e032ff85b83.tar.bz2
llvm-965841cfe4de695fc56cab4821fd7e032ff85b83.tar.xz
Support/Path: Deprecate PathV1::isAbsolute.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122086 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/PathV1.h')
-rw-r--r--include/llvm/Support/PathV1.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/llvm/Support/PathV1.h b/include/llvm/Support/PathV1.h
index 74215cb0c1..5c0bdeccf0 100644
--- a/include/llvm/Support/PathV1.h
+++ b/include/llvm/Support/PathV1.h
@@ -15,11 +15,15 @@
#define LLVM_SYSTEM_PATH_H
#include "llvm/ADT/StringRef.h"
+#include "llvm/Support/Compiler.h"
#include "llvm/Support/TimeValue.h"
#include <set>
#include <string>
#include <vector>
+#define LLVMV_PATH_DEPRECATED_MSG \
+ "PathV1 is being deprecated, please use the PathV2 API."
+
namespace llvm {
namespace sys {
@@ -300,12 +304,12 @@ namespace sys {
/// This function determines if the path name is absolute, as opposed to
/// relative.
/// @brief Determine if the path is absolute.
- bool isAbsolute() const;
+ LLVM_ATTRIBUTE_DEPRECATED(bool isAbsolute() const, LLVMV_PATH_DEPRECATED_MSG);
/// This function determines if the path name is absolute, as opposed to
/// relative.
/// @brief Determine if the path is absolute.
- static bool isAbsolute(const char *NameStart, unsigned NameLen);
+ LLVM_ATTRIBUTE_DEPRECATED(static bool isAbsolute(const char *NameStart, unsigned NameLen), 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