mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Remove the old file memory mapping functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183828 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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
|
||||
/// @{
|
||||
|
Reference in New Issue
Block a user