Fail early if an output file is not writable
authorRui Ueyama <ruiu@google.com>
Mon, 11 Mar 2019 16:30:55 +0000 (16:30 +0000)
committerRui Ueyama <ruiu@google.com>
Mon, 11 Mar 2019 16:30:55 +0000 (16:30 +0000)
commit7fd99fc4754a9ccd24f0cc0fcd0ff4df8c19206a
tree5089a6603e2489e254606a6dd2811d26e8cf66a7
parent90ede5f4bfe66a0c1b3f4616bb0cc50a6629c4ac
Fail early if an output file is not writable

Fixes https://bugs.llvm.org/show_bug.cgi?id=36478

Differential Revision: https://reviews.llvm.org/D43664

llvm-svn: 355834
lld/COFF/Driver.cpp
lld/Common/CMakeLists.txt
lld/Common/Filesystem.cpp [moved from lld/ELF/Filesystem.cpp with 95% similarity]
lld/ELF/CMakeLists.txt
lld/ELF/Driver.cpp
lld/ELF/Writer.cpp
lld/include/lld/Common/Filesystem.h [moved from lld/ELF/Filesystem.h with 85% similarity]
lld/test/COFF/driver.test