summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-06-11 22:53:00 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-06-11 22:53:00 +0000
commit07aac43603269ab7b8f105b32e24a67d915ac01d (patch)
tree50308fbdf4c42f6cd9365cda7c636057eaa84816 /include
parentc6d63a3b0da4ad49e4c29e2d4ae148d76dfe38ec (diff)
downloadllvm-07aac43603269ab7b8f105b32e24a67d915ac01d.tar.gz
llvm-07aac43603269ab7b8f105b32e24a67d915ac01d.tar.bz2
llvm-07aac43603269ab7b8f105b32e24a67d915ac01d.tar.xz
Implement get_magic with generic tools and inline it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210716 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/FileSystem.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/include/llvm/Support/FileSystem.h b/include/llvm/Support/FileSystem.h
index dbf8f9928b..b5dcc665c7 100644
--- a/include/llvm/Support/FileSystem.h
+++ b/include/llvm/Support/FileSystem.h
@@ -603,19 +603,6 @@ error_code openFileForWrite(const Twine &Name, int &ResultFD, OpenFlags Flags,
error_code openFileForRead(const Twine &Name, int &ResultFD);
-/// @brief Get \a path's first \a len bytes.
-///
-/// @param path Input path.
-/// @param len Number of magic bytes to get.
-/// @param result Set to the first \a len bytes in the file pointed to by
-/// \a path. Or the entire file if file_size(path) < len, in which
-/// case result.size() returns the size of the file.
-/// @returns errc::success if result has been successfully set,
-/// errc::value_too_large if len is larger then the file pointed to by
-/// \a path, otherwise a platform specific error_code.
-error_code get_magic(const Twine &path, uint32_t len,
- SmallVectorImpl<char> &result);
-
/// @brief Identify the type of a binary file based on how magical it is.
file_magic identify_magic(StringRef magic);