summaryrefslogtreecommitdiff
path: root/include/llvm/Support/FileSystem.h
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2010-12-28 01:49:01 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2010-12-28 01:49:01 +0000
commit628467ef1f230e40ee00626ddfdcc7ca77b45a11 (patch)
treeb07d88dd20d7e07ca99d826c968cda2659a80c14 /include/llvm/Support/FileSystem.h
parentc3ab20e62e8be9b55cce0145d02ebdd20775a53a (diff)
downloadllvm-628467ef1f230e40ee00626ddfdcc7ca77b45a11.tar.gz
llvm-628467ef1f230e40ee00626ddfdcc7ca77b45a11.tar.bz2
llvm-628467ef1f230e40ee00626ddfdcc7ca77b45a11.tar.xz
Support/PathV2: Implement has_magic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122587 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/FileSystem.h')
-rw-r--r--include/llvm/Support/FileSystem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/FileSystem.h b/include/llvm/Support/FileSystem.h
index 2a2daaeced..960875e989 100644
--- a/include/llvm/Support/FileSystem.h
+++ b/include/llvm/Support/FileSystem.h
@@ -448,7 +448,7 @@ error_code canonicalize(const Twine &path, SmallVectorImpl<char> &result);
/// @param magic Byte sequence to compare \a path's first len(magic) bytes to.
/// @results errc::success if result has been successfully set, otherwise a
/// platform specific error_code.
-error_code has_magic(const Twine &path, const Twine &magic);
+error_code has_magic(const Twine &path, const Twine &magic, bool &result);
/// @brief Get \a path's first \a len bytes.
///