diff options
author | Rui Ueyama <ruiu@google.com> | 2017-04-26 16:14:46 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2017-04-26 16:14:46 +0000 |
commit | 9e63e46badf146ae8155eb56326dda45c4bde3bd (patch) | |
tree | a5858ef906947aaf373eb4b0c2474b890558c519 /lld/ELF/Filesystem.h | |
parent | e746edc15ae2a5e0c5456e4948c0383759253242 (diff) |
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.
Diffstat (limited to 'lld/ELF/Filesystem.h')
-rw-r--r-- | lld/ELF/Filesystem.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/Filesystem.h b/lld/ELF/Filesystem.h index a33dc3651a4..d56d067f737 100644 --- a/lld/ELF/Filesystem.h +++ b/lld/ELF/Filesystem.h @@ -15,7 +15,7 @@ namespace lld { namespace elf { void unlinkAsync(StringRef Path); -bool isFileWritable(StringRef Path, StringRef FileDescription); +std::error_code tryCreateFile(StringRef Path); } } |