[llvm-commits] [PATCH] Add mapped_file_region for read/write mapped files.

Michael Spencer bigcheesegs at gmail.com
Mon Aug 6 14:00:47 PDT 2012


The attached patch adds mapped_file_region based on
boost::iostreams::mapped_file. This is a replacement for
map_file_pages/unmap_file_pages to work properly on Windows. This can
also be used by MemoryBuffer to finally have memory mapped files on
Windows.

The reason the previous APIs do not work for Windows is that there are
3 different handles that need to be kept track of to properly unmap a
region. For munmap there is only 1.

- Michael Spencer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-PathV2-Add-mapped_file_region.-Implementation-for-Wi.patch
Type: application/octet-stream
Size: 18129 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120806/6ee9a186/attachment.obj>


More information about the llvm-commits mailing list