mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
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
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user