[PATCH] D100159: Support: Add move semantics to mapped_file_region

Duncan P. N. Exon Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 9 11:56:18 PDT 2021


dexonsmith updated this revision to Diff 336535.
dexonsmith retitled this revision from "Support: Allow mapped_file_region to be used in an Optional" to "Support: Add move semantics to mapped_file_region".
dexonsmith edited the summary of this revision.
dexonsmith added a comment.

Follow @dblaikie's suggestion to allow `mapped_file_region` to be used directly as an optional.

- Add a default constructor.
- Add an `operator bool()`.
- Add `unmap()`.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D100159/new/

https://reviews.llvm.org/D100159

Files:
  llvm/include/llvm/Support/FileSystem.h
  llvm/lib/Support/FileOutputBuffer.cpp
  llvm/lib/Support/Unix/Path.inc
  llvm/lib/Support/Windows/Path.inc
  llvm/unittests/Support/Path.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100159.336535.patch
Type: text/x-patch
Size: 6964 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210409/00a7ec1b/attachment.bin>


More information about the llvm-commits mailing list