1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

[support] mapped_file_region: and fix the windows code too

Followup for r314312 / r314313
Sorry, i really failed to fully grep all the codebase :/

llvm-svn: 314321
This commit is contained in:
Roman Lebedev 2017-09-27 17:24:34 +00:00
parent 59c468272b
commit 9a4a7de282

View File

@ -700,7 +700,7 @@ std::error_code mapped_file_region::init(int FD, uint64_t Offset,
return std::error_code();
}
mapped_file_region::mapped_file_region(int fd, mapmode mode, uint64_t length,
mapped_file_region::mapped_file_region(int fd, mapmode mode, size_t length,
uint64_t offset, std::error_code &ec)
: Size(length), Mapping() {
ec = init(fd, offset, mode);
@ -713,7 +713,7 @@ mapped_file_region::~mapped_file_region() {
::UnmapViewOfFile(Mapping);
}
uint64_t mapped_file_region::size() const {
size_t mapped_file_region::size() const {
assert(Mapping && "Mapping failed but used anyway!");
return Size;
}