mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 00:20:25 +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:
@@ -192,10 +192,10 @@ int llvm::DiffFilesWithTolerance(const sys::PathWithStatus &FileA,
|
||||
// Now its safe to mmap the files into memory becasue both files
|
||||
// have a non-zero size.
|
||||
sys::MappedFile F1;
|
||||
if (F1.open(FileA, sys::MappedFile::READ_ACCESS, Error))
|
||||
if (F1.open(FileA, Error))
|
||||
return 2;
|
||||
sys::MappedFile F2;
|
||||
if (F2.open(FileB, sys::MappedFile::READ_ACCESS, Error))
|
||||
if (F2.open(FileB, Error))
|
||||
return 2;
|
||||
if (!F1.map(Error))
|
||||
return 2;
|
||||
|
||||
Reference in New Issue
Block a user