diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-12 14:11:15 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-12 14:11:15 +0000 |
commit | 2e0372d69ab11fb6c38b35d533e0a6358fd38658 (patch) | |
tree | c8888f406e8c1ac4018499f1b5763fa25f35fbc7 /include | |
parent | ddee9b46917d10e7d854011d275b77ad41693726 (diff) | |
download | llvm-2e0372d69ab11fb6c38b35d533e0a6358fd38658.tar.gz llvm-2e0372d69ab11fb6c38b35d533e0a6358fd38658.tar.bz2 llvm-2e0372d69ab11fb6c38b35d533e0a6358fd38658.tar.xz |
Remove the old file memory mapping functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183828 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/PathV1.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/include/llvm/Support/PathV1.h b/include/llvm/Support/PathV1.h index bc15cd3beb..232167a6ca 100644 --- a/include/llvm/Support/PathV1.h +++ b/include/llvm/Support/PathV1.h @@ -495,29 +495,6 @@ namespace sys { bool eraseFromDisk(bool destroy_contents = false, std::string *Err = 0) const; - - /// MapInFilePages - This is a low level system API to map in the file - /// that is currently opened as FD into the current processes' address - /// space for read only access. This function may return null on failure - /// or if the system cannot provide the following constraints: - /// 1) The pages must be valid after the FD is closed, until - /// UnMapFilePages is called. - /// 2) Any padding after the end of the file must be zero filled, if - /// present. - /// 3) The pages must be contiguous. - /// - /// This API is not intended for general use, clients should use - /// MemoryBuffer::getFile instead. - static const char *MapInFilePages(int FD, size_t FileSize, - off_t Offset); - - /// UnMapFilePages - Free pages mapped into the current process by - /// MapInFilePages. - /// - /// This API is not intended for general use, clients should use - /// MemoryBuffer::getFile instead. - static void UnMapFilePages(const char *Base, size_t FileSize); - /// @} /// @name Data /// @{ |