summaryrefslogtreecommitdiffstats
path: root/lld/ELF/ScriptParser.cpp
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-09-06 16:30:22 +0000
committerFangrui Song <maskray@google.com>2019-09-06 16:30:22 +0000
commit2682bc3c9d1ec7da324bedfa46fce537797b5a49 (patch)
tree82b94ce1edc55c4e68ebbc4c256805baa88416ca /lld/ELF/ScriptParser.cpp
parent52614dfc7fd09d3de608068415eaa632c21c661d (diff)
downloadbcm5719-llvm-2682bc3c9d1ec7da324bedfa46fce537797b5a49.tar.gz
bcm5719-llvm-2682bc3c9d1ec7da324bedfa46fce537797b5a49.zip
[ELF] Replace error() with errorOrWarn() for the ASSERT command
Summary: ld.bfd produces an output with --noinhibit-exec when an ASSERT fails. Use errorOrWarn() so that we can produce an output as well. An interesting case is that symbol assignments may execute multiple times, so we probably want to suppress errors for non-final runs. Reviewed By: peter.smith Differential Revision: https://reviews.llvm.org/D67285 llvm-svn: 371225
Diffstat (limited to 'lld/ELF/ScriptParser.cpp')
-rw-r--r--lld/ELF/ScriptParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/ScriptParser.cpp b/lld/ELF/ScriptParser.cpp
index 40c993df550..9ada28ca13e 100644
--- a/lld/ELF/ScriptParser.cpp
+++ b/lld/ELF/ScriptParser.cpp
@@ -720,7 +720,7 @@ Expr ScriptParser::readAssert() {
return [=] {
if (!e().getValue())
- error(msg);
+ errorOrWarn(msg);
return script->getDot();
};
}
OpenPOWER on IntegriCloud