[lld] r274755 - Use "using namespace llvm" like the rest of ELF lld.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 7 07:06:38 PDT 2016
Author: rafael
Date: Thu Jul 7 09:06:38 2016
New Revision: 274755
URL: http://llvm.org/viewvc/llvm-project?rev=274755&view=rev
Log:
Use "using namespace llvm" like the rest of ELF lld.
Modified:
lld/trunk/ELF/Error.cpp
Modified: lld/trunk/ELF/Error.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Error.cpp?rev=274755&r1=274754&r2=274755&view=diff
==============================================================================
--- lld/trunk/ELF/Error.cpp (original)
+++ lld/trunk/ELF/Error.cpp Thu Jul 7 09:06:38 2016
@@ -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 Twi
}
void fatal(const Twine &Msg) {
- llvm::errs() << Msg << "\n";
+ errs() << Msg << "\n";
exit(1);
}
More information about the llvm-commits
mailing list