From 2e0372d69ab11fb6c38b35d533e0a6358fd38658 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 12 Jun 2013 14:11:15 +0000 Subject: Remove the old file memory mapping functions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183828 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/PathV1.h | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'include') 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 /// @{ -- cgit v1.2.3