Move code to emit error messages from Filesystem.cpp to Driver.cpp.
authorRui Ueyama <ruiu@google.com>
Wed, 26 Apr 2017 16:14:46 +0000 (16:14 +0000)
committerRui Ueyama <ruiu@google.com>
Wed, 26 Apr 2017 16:14:46 +0000 (16:14 +0000)
commit71630278843ecd68598caa91e7f043af31267a6e
tree45e9bad67cf0e192321b42852ce6736b2788dc75
parent1593a741a4fa973520273ebe0e51f13c2d051e1c
Move code to emit error messages from Filesystem.cpp to Driver.cpp.

isFileWritable() checked if a file is writable and then emitted
an error message if it is not writable. So it did more than the
name says. This patch moves error() calls to Driver.

llvm-svn: 301422
lld/ELF/Driver.cpp
lld/ELF/Filesystem.cpp
lld/ELF/Filesystem.h