diff options
| -rw-r--r-- | lld/ELF/Error.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lld/ELF/Error.cpp b/lld/ELF/Error.cpp index d4a02e1435d..6479cbb648a 100644 --- a/lld/ELF/Error.cpp +++ b/lld/ELF/Error.cpp @@ -13,22 +13,24 @@ #include "llvm/ADT/Twine.h" #include "llvm/Support/raw_ostream.h" +using namespace llvm; + namespace lld { namespace elf { bool HasError; -llvm::raw_ostream *ErrorOS; +raw_ostream *ErrorOS; void log(const Twine &Msg) { if (Config->Verbose) - llvm::outs() << Msg << "\n"; + outs() << Msg << "\n"; } void warning(const Twine &Msg) { if (Config->FatalWarnings) error(Msg); else - llvm::errs() << Msg << "\n"; + errs() << Msg << "\n"; } void error(const Twine &Msg) { @@ -42,7 +44,7 @@ void error(std::error_code EC, const Twine &Prefix) { } void fatal(const Twine &Msg) { - llvm::errs() << Msg << "\n"; + errs() << Msg << "\n"; exit(1); } |

