summaryrefslogtreecommitdiffstats
path: root/lld/ELF/Error.cpp
diff options
context:
space:
mode:
authorEugene Leviant <evgeny.leviant@gmail.com>2016-10-19 09:35:19 +0000
committerEugene Leviant <evgeny.leviant@gmail.com>2016-10-19 09:35:19 +0000
commit74c1b6c54849b02918b7c6290e2be987738be2f5 (patch)
treebcc94f2e39d579eadeaa1b06ce24cf505b6da09a /lld/ELF/Error.cpp
parentb2ca2505ccc9877657239e54ba274b4811a02e0f (diff)
downloadbcm5719-llvm-74c1b6c54849b02918b7c6290e2be987738be2f5.tar.gz
bcm5719-llvm-74c1b6c54849b02918b7c6290e2be987738be2f5.zip
[ELF] Add "error" and "warning" prefixes to linker messages
Differential revision: https://reviews.llvm.org/D25729 llvm-svn: 284575
Diffstat (limited to 'lld/ELF/Error.cpp')
-rw-r--r--lld/ELF/Error.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lld/ELF/Error.cpp b/lld/ELF/Error.cpp
index 729888e195e..06aa28120ef 100644
--- a/lld/ELF/Error.cpp
+++ b/lld/ELF/Error.cpp
@@ -30,11 +30,11 @@ void elf::warn(const Twine &Msg) {
if (Config->FatalWarnings)
error(Msg);
else
- *ErrorOS << Msg << "\n";
+ *ErrorOS << "warning: " << Msg << "\n";
}
void elf::error(const Twine &Msg) {
- *ErrorOS << Msg << "\n";
+ *ErrorOS << "error: " << Msg << "\n";
HasError = true;
}
@@ -43,7 +43,7 @@ void elf::error(std::error_code EC, const Twine &Prefix) {
}
void elf::fatal(const Twine &Msg) {
- *ErrorOS << Msg << "\n";
+ *ErrorOS << "error: " << Msg << "\n";
exit(1);
}
OpenPOWER on IntegriCloud