summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Unix/Path.inc
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-03-10 18:01:43 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-03-10 18:01:43 +0000
commite413d9d3411a45f8b7c6f4f95f5f7cdfa25e5b12 (patch)
tree8216308eccf17d406b1b1236526c6399695601d0 /llvm/lib/Support/Unix/Path.inc
parent8f934e42d8e859c7168b81362bca4a1cab99155b (diff)
downloadbcm5719-llvm-e413d9d3411a45f8b7c6f4f95f5f7cdfa25e5b12.tar.gz
bcm5719-llvm-e413d9d3411a45f8b7c6f4f95f5f7cdfa25e5b12.zip
Revert r127409 which broke all the Windows bots.
llvm-svn: 127413
Diffstat (limited to 'llvm/lib/Support/Unix/Path.inc')
-rw-r--r--llvm/lib/Support/Unix/Path.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc
index 430cf2ed8e8..0f6e800505e 100644
--- a/llvm/lib/Support/Unix/Path.inc
+++ b/llvm/lib/Support/Unix/Path.inc
@@ -869,18 +869,18 @@ Path::makeUnique(bool reuse_current, std::string* ErrMsg) {
return false;
}
-const char *Path::MapInFilePages(int FD, size_t FileSize, off_t Offset) {
+const char *Path::MapInFilePages(int FD, uint64_t FileSize) {
int Flags = MAP_PRIVATE;
#ifdef MAP_FILE
Flags |= MAP_FILE;
#endif
- void *BasePtr = ::mmap(0, FileSize, PROT_READ, Flags, FD, Offset);
+ void *BasePtr = ::mmap(0, FileSize, PROT_READ, Flags, FD, 0);
if (BasePtr == MAP_FAILED)
return 0;
return (const char*)BasePtr;
}
-void Path::UnMapFilePages(const char *BasePtr, size_t FileSize) {
+void Path::UnMapFilePages(const char *BasePtr, uint64_t FileSize) {
::munmap((void*)BasePtr, FileSize);
}
OpenPOWER on IntegriCloud