Files
clang-p2996/llvm/lib/Support
Fangrui Song 9d53db2aa0 [Support] Allow FileOutputBuffer::create to create an empty file
Size==0 triggers `assert(Size != 0)` in mapped_file_region::init.
I plan to use an empty file in D79339 (llvm-objcopy --dump-section).

According to POSIX, "If len is zero, mmap() shall fail and no mapping
shall be established." Just specialize case Size=0 to use
createInMemoryBuffer.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D79338
2020-05-05 08:11:58 -07:00
..
2020-05-04 13:52:30 +01:00
2020-02-28 09:59:24 +01:00
2020-05-04 16:40:39 -07:00
2019-08-15 10:05:22 +00:00
2020-04-11 17:20:11 +02:00