[PATCH] D48397: [dsymutil] Force mmap'ing of binaries
Jonas Devlieghere via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 21 14:42:41 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL335293: [dsymutil] Force mmap'ing of binaries (authored by JDevlieghere, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D48397?vs=152180&id=152382#toc
Repository:
rL LLVM
https://reviews.llvm.org/D48397
Files:
llvm/trunk/tools/dsymutil/BinaryHolder.cpp
Index: llvm/trunk/tools/dsymutil/BinaryHolder.cpp
===================================================================
--- llvm/trunk/tools/dsymutil/BinaryHolder.cpp
+++ llvm/trunk/tools/dsymutil/BinaryHolder.cpp
@@ -62,7 +62,7 @@
// (either because the archive is not there anymore, or because the
// archive doesn't contain the requested member), this will still
// provide a sensible error message.
- auto ErrOrFile = MemoryBuffer::getFileOrSTDIN(Filename);
+ auto ErrOrFile = MemoryBuffer::getFileOrSTDIN(Filename, -1, false);
if (auto Err = ErrOrFile.getError())
return Err;
@@ -136,7 +136,7 @@
StringRef Filename, sys::TimePoint<std::chrono::seconds> Timestamp) {
StringRef ArchiveFilename = Filename.substr(0, Filename.find('('));
- auto ErrOrBuff = MemoryBuffer::getFileOrSTDIN(ArchiveFilename);
+ auto ErrOrBuff = MemoryBuffer::getFileOrSTDIN(ArchiveFilename, -1, false);
if (auto Err = ErrOrBuff.getError())
return Err;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48397.152382.patch
Type: text/x-patch
Size: 972 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180621/90454137/attachment.bin>
More information about the llvm-commits
mailing list