mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Remove MappedFile support for mapping files for write and exec
and shared. This complicates the design, is not used, and probably doesn't even work. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49022 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -212,7 +212,7 @@ Archive::writeMember(
|
||||
sys::MappedFile* mFile = 0;
|
||||
if (!data) {
|
||||
mFile = new sys::MappedFile();
|
||||
if (mFile->open(member.getPath(), sys::MappedFile::READ_ACCESS, ErrMsg))
|
||||
if (mFile->open(member.getPath(), ErrMsg))
|
||||
return true;
|
||||
if (!(data = (const char*) mFile->map(ErrMsg)))
|
||||
return true;
|
||||
@@ -411,7 +411,7 @@ Archive::writeToDisk(bool CreateSymbolTable, bool TruncateNames, bool Compress,
|
||||
|
||||
// Map in the archive we just wrote.
|
||||
sys::MappedFile arch;
|
||||
if (arch.open(TmpArchive, sys::MappedFile::READ_ACCESS, ErrMsg))
|
||||
if (arch.open(TmpArchive, ErrMsg))
|
||||
return true;
|
||||
const char* base;
|
||||
if (!(base = (const char*) arch.map(ErrMsg)))
|
||||
|
Reference in New Issue
Block a user