summaryrefslogtreecommitdiff
path: root/lld/ELF/Filesystem.h
diff options
context:
space:
mode:
authorJames Henderson <jh7370@my.bristol.ac.uk>2017-04-04 09:42:24 +0000
committerJames Henderson <jh7370@my.bristol.ac.uk>2017-04-04 09:42:24 +0000
commit73c3152746f82570946c2b88f9e103479afcca3f (patch)
tree85268fcadca55c0129204389c6346a74c355642e /lld/ELF/Filesystem.h
parentd5b2e8780c69e1c6fc4f73837f80f6ab97cadb11 (diff)
[ELF] Fail the link early if the map file path is invalid
As with the changes made in r297645, we do not want a potentially long link to be run, if it will ultimately fail because the map file is not writable. This change reuses the same functionality as the output file path check. See https://reviews.llvm.org/D30449 for further justification and explanations. Reviewers: ruiu Differential Revision: https://reviews.llvm.org/D31603
Diffstat (limited to 'lld/ELF/Filesystem.h')
-rw-r--r--lld/ELF/Filesystem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/Filesystem.h b/lld/ELF/Filesystem.h
index 7e97cbe634f..a33dc3651a4 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);
+bool isFileWritable(StringRef Path, StringRef FileDescription);
}
}