diff options
| author | Eugene Leviant <evgeny.leviant@gmail.com> | 2016-10-19 09:35:19 +0000 |
|---|---|---|
| committer | Eugene Leviant <evgeny.leviant@gmail.com> | 2016-10-19 09:35:19 +0000 |
| commit | 74c1b6c54849b02918b7c6290e2be987738be2f5 (patch) | |
| tree | bcc94f2e39d579eadeaa1b06ce24cf505b6da09a /lld/ELF/Error.cpp | |
| parent | b2ca2505ccc9877657239e54ba274b4811a02e0f (diff) | |
| download | bcm5719-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.cpp | 6 |
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); } |

