summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2017-01-16 01:07:19 +0000
committerRui Ueyama <ruiu@google.com>2017-01-16 01:07:19 +0000
commitc9807c3370568e970fa3659c5e973b57afe78365 (patch)
treef6312bb2f74264ebbcec42be744f6bc345157879
parent6f303fe2f490b3568cfae9409bc6428d1bf86ca9 (diff)
downloadbcm5719-llvm-c9807c3370568e970fa3659c5e973b57afe78365.tar.gz
bcm5719-llvm-c9807c3370568e970fa3659c5e973b57afe78365.zip
Use error() instead of fatal() to handle file open error.
llvm-svn: 292090
-rw-r--r--lld/ELF/MapFile.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lld/ELF/MapFile.cpp b/lld/ELF/MapFile.cpp
index 9f7a6f39184..8986b9f78f7 100644
--- a/lld/ELF/MapFile.cpp
+++ b/lld/ELF/MapFile.cpp
@@ -122,8 +122,9 @@ void elf::writeMapFile(ArrayRef<OutputSectionBase *> OutputSections) {
std::error_code EC;
raw_fd_ostream OS(Config->MapFile, EC, sys::fs::F_None);
if (EC)
- fatal("cannot open " + Config->MapFile + ": " + EC.message());
- writeMapFile2<ELFT>(OS, OutputSections);
+ error("cannot open " + Config->MapFile + ": " + EC.message());
+ else
+ writeMapFile2<ELFT>(OS, OutputSections);
}
template void elf::writeMapFile<ELF32LE>(ArrayRef<OutputSectionBase *>);
OpenPOWER on IntegriCloud