diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-12-28 01:49:21 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-12-28 01:49:21 +0000 |
commit | 4213618088b0c0c85b208a01b45d89972984831b (patch) | |
tree | d302131b9b8b8702307adeae64946a470282c170 /include/llvm/Support/PathV1.h | |
parent | bf0184b6841a729bd09efff59fc4906e091024ec (diff) | |
download | llvm-4213618088b0c0c85b208a01b45d89972984831b.tar.gz llvm-4213618088b0c0c85b208a01b45d89972984831b.tar.bz2 llvm-4213618088b0c0c85b208a01b45d89972984831b.tar.xz |
Support/Path: Deprecate Path::hasMagicNumber and replace all uses with fs::has_magic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122589 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/PathV1.h')
-rw-r--r-- | include/llvm/Support/PathV1.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Support/PathV1.h b/include/llvm/Support/PathV1.h index 1fec1e56c8..86fdb0c0ac 100644 --- a/include/llvm/Support/PathV1.h +++ b/include/llvm/Support/PathV1.h @@ -329,7 +329,8 @@ namespace sys { /// cases (file not found, file not accessible, etc.) it returns false. /// @returns true if the magic number of the file matches \p magic. /// @brief Determine if file has a specific magic number - bool hasMagicNumber(StringRef magic) const; + LLVM_ATTRIBUTE_DEPRECATED(bool hasMagicNumber(StringRef magic) const, + LLVM_PATH_DEPRECATED_MSG(fs::has_magic)); /// This function retrieves the first \p len bytes of the file associated /// with \p this. These bytes are returned as the "magic number" in the |