summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIvan Krasin <krasin@chromium.org>2011-09-15 23:13:00 +0000
committerIvan Krasin <krasin@chromium.org>2011-09-15 23:13:00 +0000
commit71280b55a3406c7dd4215449bf4a3ab216e78ffd (patch)
tree81cd494c9225445a8ad0b41ec0793bf30a76460c /include
parent6b5b79c7e8aec3138727e102e85aaf1c3a01765e (diff)
downloadllvm-71280b55a3406c7dd4215449bf4a3ab216e78ffd.tar.gz
llvm-71280b55a3406c7dd4215449bf4a3ab216e78ffd.tar.bz2
llvm-71280b55a3406c7dd4215449bf4a3ab216e78ffd.tar.xz
use 64-bit types instead of off_t/size_t to avoid the issue when
gold plugin is built with Large File Support (sizeof(off_t) == 64 on i686) and the rest of LLVM is built w/o Large File Support (sizeof(off_t) == 32 on i686) which corrupts the stack. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139873 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/MemoryBuffer.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Support/MemoryBuffer.h b/include/llvm/Support/MemoryBuffer.h
index 5e55bd981f..06816de971 100644
--- a/include/llvm/Support/MemoryBuffer.h
+++ b/include/llvm/Support/MemoryBuffer.h
@@ -75,9 +75,9 @@ public:
/// return a MemoryBuffer.
static error_code getOpenFile(int FD, const char *Filename,
OwningPtr<MemoryBuffer> &result,
- size_t FileSize = -1,
- size_t MapSize = -1,
- off_t Offset = 0,
+ uint64_t FileSize = -1,
+ uint64_t MapSize = -1,
+ int64_t Offset = 0,
bool RequiresNullTerminator = true);
/// getMemBuffer - Open the specified memory range as a MemoryBuffer. Note